Thank you so much for this simple & easy to understandable video , i implemented same in project. It worked :)
@Mukeshotwani
4 жыл бұрын
Thanks Poonam, I am glad it helped you.
@devineechoes
3 жыл бұрын
Thanks Its Super Simple and Clear Stepwise explanation
@Mukeshotwani
3 жыл бұрын
Most welcome Sana 😀 and feel free to connect with me for any issue in test automation.
@rakshareddy5438
7 жыл бұрын
Awesome:)You always make logic very simple.I just love all your videos.Good job:)Keep going.
@pushkarbajpai8989
8 жыл бұрын
Thanks Mukesh. U r doing a commendable work by providing very useful videos. U explain all concepts in very clear way. Thanks a lot
@Mukeshotwani
8 жыл бұрын
+Pushkar Bajpai Thanks a lot Pushkar :) Keep visiting other videos as well.
@asankarana5481
7 жыл бұрын
Nice Work Mukesh. Really Appreciate your work. I learned lot of things from your videos. Keep up the good work.
@Mukeshotwani
7 жыл бұрын
Thanks Asanka :) Keep learning.
@surajwarade3973
7 жыл бұрын
Thank you Mukesh sir, your tutorials are helpfull
@goutamsethi8880
3 жыл бұрын
Hi Mukesh, I am a manual tester, now I learning automation java with selenium, please suggest to me which videos I have to refer .
@kannansekar6641
4 жыл бұрын
Thanks for the simple explanation bro :)
@Mukeshotwani
4 жыл бұрын
Happy to help Kannan
@salwakhan4080
9 жыл бұрын
Thank you for sharing such a great tutorial i have few things to request if you can make it in one video tutorial i'll be very thankful to you.
@Mukeshotwani
8 жыл бұрын
+Salwa Khan yes please share Salwa
@vipinvenugopal2701
4 жыл бұрын
Thank you for such practically useful videos man :)
@Mukeshotwani
4 жыл бұрын
Thanks Vipin :)
@chetansahu8108
4 жыл бұрын
Hi mukesh, In this video, you explained how to take a screenshot if a test case fail, so the screenshot comes in the name of the test case. suppose the test case has more than one assert and I'm using soft assert my whole test case is going to pass but suppose in my test more then one assert fail so how to take screenshots of all the assert fail and provide a name to those screenshot related to the assert?
@Mukeshotwani
4 жыл бұрын
Hi Chetan, its takes screenshot once test reached to @AfterMethod
@MrJamil-in6rx
8 жыл бұрын
Really Mukesh ur tutorials are very helpful..
@Mukeshotwani
8 жыл бұрын
+Jamiluddin Ahmed Thnks Ahmed keep visiting :)
@anitham9066
8 жыл бұрын
Hi Mukesh the videos are very helpful Can you please tell how to take the screenshots and put in a word document one after the other?
@rachitkumarnandi
2 жыл бұрын
Thank you. Was very helpful
@Mukeshotwani
2 жыл бұрын
You're welcome! Rachit
@akanamontana9989
7 жыл бұрын
Hi Mukesh, how do I implement this strategy on Junit as well, seems to work only on TestNG and by the way you rock man. Thanks for all the help.
@binaryautomation-sdets2336
6 жыл бұрын
but if the failure is due to a hard assert, then the execution will stop at that statement, it wont go to the @after method. Am i missing something here?
@desiChiraiya
7 жыл бұрын
hello sir all of your videos are very helpful ! recently i tried taking screenshot of fail test cases it only takes screenshot of window where the test case got failed, My point is the screenshot should include error message and red signs also how to do it ? thanks in advance!
@Mukeshotwani
7 жыл бұрын
for that you can refer extent report video.
@RAUSHANPANDEY0007
8 жыл бұрын
Thanks mukesh...it was very helpful.
@Mukeshotwani
8 жыл бұрын
+RAUSHAN PANDEY Thanks Raushan
@hossenchannel7919
7 жыл бұрын
Very Informative...and a frequently asked Selenium interview question !! Do you have any video on the step where lets say step is passed and we have to validation with Assert.assert method
@Mukeshotwani
7 жыл бұрын
+Hossen Channel Hi Hossan I have 2 videos on assertion.. please check my playlist
@abirganguly2626
5 жыл бұрын
How to take screenshot in chrome headless mode? Could you please let me know?
@Mukeshotwani
4 жыл бұрын
Hey Abir for headless we don't need a different approach. We can use the same.
@naveenk7031
7 жыл бұрын
Hi Mukesh, Your teaching and explanation is excellent I loved it. I have one question which is, In cell I click on drop down and select a value, after selecting the value it'll move to next cell and will do same action so, can you please explain it?
@Mukeshotwani
7 жыл бұрын
Hi Naveen what is the issue here?
@naveenk7031
7 жыл бұрын
For that how to write script?
@naveenk7031
7 жыл бұрын
Exactly I don't know how to handle the drop down from excel sheet can you please help me?
@chaitanya2590
8 жыл бұрын
As always your tutorials are very helpful! Thanks Mukesh for helping us :)
@Mukeshotwani
8 жыл бұрын
Welcome Chaitanya :) keep visiting
@callenbyron8111
3 жыл бұрын
i guess im asking the wrong place but does someone know of a tool to get back into an instagram account? I stupidly forgot my account password. I would appreciate any help you can give me.
@hemavathibs2195
6 жыл бұрын
Hi sir, I have generated html file but not able attach report during run time. I'm not getting any errors but unable to attach screenshot. I'm working with Maven project (geb,spock, groovy), getting unable to resolve utility.Utility
@boyasurendra4886
5 ай бұрын
hello where i can see previous video
@vinann4145
7 жыл бұрын
Hi Mukesh, As usual a very good informative video Thanks a lot. How can we take the screenshot using Listeners?
@Mukeshotwani
7 жыл бұрын
Yes Vina we can do that. I have listeners video you can implement that method as well.
@rahulpundir3653
5 жыл бұрын
@@Mukeshotwani Hi, do you have a video or something on your blog explaining how to capture a screenshot using listeners. Maybe for the same test that you have in this video.
@noorbasha609
4 жыл бұрын
in ubuntu python 2.7 element.screenshot("scren.png") or element.save_screenshot("scren.png") is not working. but it is working in windows any idea sir. please help me i struck with this from 3 days
@Mukeshotwani
4 жыл бұрын
Hi Noor, can you try with Python 3?
@noorbasha609
4 жыл бұрын
@@Mukeshotwani Thaks for replay mukesh. in ubuntu it is not working. but i tried in windows with python 2.7 and 3.8 it is working. Ubuntu not working
@SoniaSharma-bp9gt
8 жыл бұрын
Thank you for this video tutorial.
@Mukeshotwani
8 жыл бұрын
+Sonia Sharma Thanks Sonia
@hareped
8 жыл бұрын
Hi Mukesh Really very nice step wise explanation. Thanks Appreciated Need your help and opinion, which is best eclipse plugin or any other software to open *.png
@Mukeshotwani
8 жыл бұрын
Hi, no need of plugin you can right click and you can open in normal editor
@abhijeetyadav9817
6 жыл бұрын
Hello sir, I am taking multiple inputs from excel sheet and running a test case . If 2 or more input tests fail then also this will create single screenshot because result.getName() returns the same name on every failer so this will create a single screenshot every time due to the same name. Please tell me how to set a different name to every failure test screenshot?
@Mukeshotwani
6 жыл бұрын
Hi Abhijeet, in this case you can use date time stamp concept learn-automation.com/how-to-get-current-system-date-and-time-in-java-selenium/
@vishnujayam8382
4 жыл бұрын
Hey Abhijeet, I faced the same issue! u can simply add "+ LocalDateTime.now()" next to getName() and ur problem will be solved :)
@poonamthakur5716
4 жыл бұрын
@@vishnujayam8382 how you did? i tried same as u said but its not creating screenshot with different name for failure. PFB line of code Utility.captureScreenshot(driver, result.getName()+LocalDateTime.now());
@vishnujayam8382
4 жыл бұрын
@@poonamthakur5716 I think the code given by you should work! The name of the screenshot will be the class name appended with the current time so in general there should be different screenshots with different names (at least the time appended to the screenshot will be different) the time appended to the screenshot will be like 2020-08-17T16:52:02.203671.png
@yorkmena
8 жыл бұрын
Hi Mukesh, Why did you put "ITestResult result" as a parameter for the method. Why cannot be simply declare it as in the body of the method.
@Mukeshotwani
8 жыл бұрын
+aashish mathur ITestResult will get the complete Result and based on the status we will do the action.
@zubairbeig2702
2 жыл бұрын
Good video
@Mukeshotwani
2 жыл бұрын
Thanks Zubair
@GurudattaPraharaj
7 жыл бұрын
will u please help ? i wrote the same code and used getName() method but it saving the screenshot with null.png name
@abhijeetsahoo9974
4 жыл бұрын
Hello sir can u also tell how to do it by TestNG listeners as u told plz
@Mukeshotwani
4 жыл бұрын
Yes Sahoo ji will.plan soon
@nirajgahukar7665
6 жыл бұрын
How to include this in a library as I have multiple classes to run through xml file?
@michaelkiruku7290
6 жыл бұрын
Hi Mukesh.. I am taking multiple inputs from excel sheet and running a testcase, Each input is considered to be testcase, However if a 2 test cases fail, I only have a screenshot for the last failed test case. How can I overcome this?
@Mukeshotwani
6 жыл бұрын
Hey Michael, I use below way to take the screenshot of every failed test case. learn-automation.com/how-to-capture-screenshot-for-failed-test-cases-in-selenium-webdriver/ @AfterMethod public void tearDown(ITestResult result) { // Here will compare if test is failing then only it will enter into if condition if(ITestResult.FAILURE==result.getStatus()) { try { // Create refernce of TakesScreenshot TakesScreenshot ts=(TakesScreenshot)driver; // Call method to capture screenshot File source=ts.getScreenshotAs(OutputType.FILE); // Copy files to specific location here it will save all screenshot in our project home directory and // result.getName() will return name of test case so that screenshot name will be same FileUtils.copyFile(source, new File("./Screenshots/"+result.getName()+".png")); System.out.println("Screenshot taken"); } catch (Exception e) { System.out.println("Exception while taking screenshot "+e.getMessage()); } } // close application driver.quit(); }
@krishnaraosenapati2762
6 жыл бұрын
hello mukesh , i am getting configuration failure in @AfterTest and Exception is org.testng.TestNGException. But same code is working fine in @AfterMethod. Please help me on this . Thanks in Advance
@manoharnaguru4237
4 жыл бұрын
Is it any jar file for utility method??... How to resolve it?...plz help anyone
@Mukeshotwani
4 жыл бұрын
Hey Manohar, what issue you are facing?
@manoharnaguru4237
4 жыл бұрын
When I used utility method in this program, it doesn't importing sir... Is it any jar file for utility
@Mukeshotwani
4 жыл бұрын
@@manoharnaguru4237 Hey Manohar we have created utility in this video
@deepudevarakonda6802
8 жыл бұрын
Hi Mukesh. It's really helpful. I have a qq. How to use ITestResult for multiple data ? Thanks in advance.
@Mukeshotwani
8 жыл бұрын
+deepu devarakonda Hi Deepu for multiple data we have another interface which capture the result of complete suite and then you can use the result.
@ravikumarch3595
7 жыл бұрын
Superb sir but while teaching time can you plz increase the font size
@Mukeshotwani
7 жыл бұрын
sure will do from next time.
@Mukeshotwani
7 жыл бұрын
sure will do from next time.
@ramsunkara1829
5 жыл бұрын
Could u tell Where is your previous video link Sir
@Mukeshotwani
5 жыл бұрын
Hi Ram, here is the link kzitem.info/news/bejne/laKa2mGBgpmBiIY
@ramsunkara1829
5 жыл бұрын
Tq verry much Sir. 😍
@grupomexico4679
7 жыл бұрын
can you doit an example in python with chrome webdriver thanks
@baldygaming2226
7 жыл бұрын
Hi mukesh great learning once again! if i may ask a question can i use @afterclass for the tearDown? because my framework is im just calling the classes
@baldygaming2226
7 жыл бұрын
im using xmal to run my test cases
@rosiniyarobertstanley3667
7 жыл бұрын
Thank you so much
@dayanidhibisoyi6908
8 жыл бұрын
what is difference Test NG listener and Web Driver Listener
@Mukeshotwani
8 жыл бұрын
+dayanidhi bisoyi Hi Dayanidhi below links will help you. learn-automation.com/what-is-testng-listener-and-how-to-implement-in-selenium/ learn-automation.com/what-is-listeners-in-selenium-webdriver/
@dayanidhibisoyi6908
8 жыл бұрын
Thanks
@neelimapatnaik4327
8 жыл бұрын
Super tutorial
@Mukeshotwani
8 жыл бұрын
Thanks Neelu
@santoshmohanty8135
7 жыл бұрын
But I want to know how to take screenshot on a particular webelement
@Mukeshotwani
7 жыл бұрын
Hi Santosh this will help www.software-testing-tutorials-automation.com/2015/01/how-to-capture-element-screenshot-using.html
@wojciechp7176
6 жыл бұрын
Thanks a lot!
@Mukeshotwani
6 жыл бұрын
Hey Wojciech P I am glad you liked my tutorial . Keep learning and Sharing. Feel free to contact for any issues related to Automation.
Пікірлер: 115