Wow.... Very clear and excellent explanation.. you saved me... Thank-you so much !!
@Mukeshotwani6 жыл бұрын
HI Aastha thank you so much for such a nice comment.. It means a lot to me. Keep learning.
@naveenkommineni61014 жыл бұрын
Hi Mukesh, with this video I have learned How to capture Screenshot. I am following your videos as you provided the links in your blog( Basic, Advanced). meanwhile, I am preparing interview questions topic wise. Thank you for sharing the resume template.
@prithadutta46997 жыл бұрын
Your video is so good. Thank you so much
@MrMadhur14g8 жыл бұрын
Mukesh bhai,,,, just amazing... u r superv yaar.... hats off.... please keep uploading more n more videos.....god bless u...
@Mukeshotwani8 жыл бұрын
+MrMadhur14g Hi Madhur thank you keep visiting and let me know if I can help you in Selenium
@TheSandy97647 жыл бұрын
Hi Mukesh, Thank you so much. Easy to understand all concept about how to take a screenshot. Thank you again. .
@maurvikareddy73275 жыл бұрын
Thank you so much for your explanation.you clear my doubts in each and every line as well how to utilize the code in all the way.
@Mukeshotwani5 жыл бұрын
Hi Aruna I am happy to read your comment. Keep learning.
@preetisharma53407 жыл бұрын
Thanks Mukesh for explaining it so clearly ....
@Mukeshotwani7 жыл бұрын
Welcome Preeti Keep visiting. Happy Weekend.
@Sandarshantv9 жыл бұрын
about u r commitment on automation frame work... no words to say..... bt marvelllous, fantastic, beautiful... thank u so much mukesh.. keep it up
@Mukeshotwani9 жыл бұрын
+satish narayana Thanks you Satish :)
@shashikl25569 жыл бұрын
Thanks for this video, Nice explanation with more information, very helpful to interested people want learn own (online)... You are doing a great job!!! Keep going.....................................................
@Mukeshotwani9 жыл бұрын
+Shashi Shashi Thanks Shashi
@vyankateshbudharam98505 жыл бұрын
Short and best explanation ✌
@balajivirupaksham46069 жыл бұрын
Detailed explanation Mukesh!! Good job
@Mukeshotwani9 жыл бұрын
thank You
@Mukeshotwani9 жыл бұрын
thank You
@siyarsahar99545 жыл бұрын
I love it. Now I got how to take screenshots. Thnx Mukesh!
@Mukeshotwani5 жыл бұрын
Hi Siyar, you can also watch next video where we take screenshot whenever test fails learn-automation.com/how-to-capture-screenshot-for-failed-test-cases-in-selenium-webdriver/
@anilkashyap59535 жыл бұрын
FileUtils.copyFile() is not woking what to next in selenium 3
@shibapoppli89138 жыл бұрын
very nice explanation....clear and crisp...!!
@Mukeshotwani8 жыл бұрын
+Shiba Poppli thnks Shiba
@rajanc19607 жыл бұрын
Your video is really very helpful. Superb :)
@PriyankaKush887 жыл бұрын
Useful video.......Thanks Mukesh :)
@chandraSekhar-lx6he9 жыл бұрын
Simply Awesome Mukesh. I like it very much. The way of presentation of subject is really good. Explaing the java concepts whever required in is very helpful. Thanks alot.
@Mukeshotwani9 жыл бұрын
+chandra Sekhar Thank you Chamdra :)
@mithunj21126 жыл бұрын
ಸ್ಕ್ರೀನ್ ಶಾಟ್ ಮಾಡುವುದು ಹೇಗೆ.
@sagarshinde60337 жыл бұрын
Thanku sir Ur the best selenium guideline
@Mukeshotwani7 жыл бұрын
Thanks Sagar Shinde :) Keep learning..
@NPRBEST5 жыл бұрын
This is the best tutorial I have found so far. Each word in the program has been explained with detail. Thank you very much sir for uploading this series.
@Mukeshotwani5 жыл бұрын
Thank you so much Nayan 🙏
@snigshine44814 жыл бұрын
wonderful explanation thanks mukesh
@Mukeshotwani4 жыл бұрын
You're most welcome Snig Shine
@ElectricEssenceLtd9 жыл бұрын
brilliant Job Mukesh!!
@Mukeshotwani9 жыл бұрын
+aamir mushtaq Thanks :)
@madhavianandchakravadhanul4447 жыл бұрын
so nicely explained , i have to try out in practicals but very well explained .
@misalar8 жыл бұрын
Teaching method is really nice...keep it up
@Mukeshotwani8 жыл бұрын
Thanks mate
@gowristla23348 жыл бұрын
Thank you for these videos Mukesh. I recently started learning Java and Selenium and your videos are proving to be very helpful for me.
@Mukeshotwani8 жыл бұрын
Thanks Gowri :) keep watching
@stanu11596 жыл бұрын
U r explaining awesome sir step by step
@Mukeshotwani6 жыл бұрын
Thanks Sandhya. For code and everything you can check below links learn-automation.com/how-to-capture-screenshot-in-selenium-webdriver/
@RamaDevi-re4tz9 жыл бұрын
Hi Mukesh, Thanks for this video, very helpful... You are doing a great job!!! Thanks a lot..
@Mukeshotwani9 жыл бұрын
+Rama Devi HI Rama thank you :) Keep watching.
@vikiviky11229 жыл бұрын
Very nice Video. Nice job Mukesh,
@Mukeshotwani9 жыл бұрын
Viki Viky tnnx Viky
@vikiviky11229 жыл бұрын
Hey mukesh, just a quick question- If my program is running in multiple data , lets say i have 5 userid's and password for facebook login , how would i take screenshot for all instances, if my program is common for all datas
@Mukeshotwani9 жыл бұрын
Viki Viky just after ur test call screenshot method (lib which we created)
@Mukeshotwani9 жыл бұрын
thanks
@risingsun25176 жыл бұрын
Thank you for this tutorial, very well explained.
@bhagyashri1098 жыл бұрын
It is really very helpful . Thanks Mukesh :)
@Mukeshotwani8 жыл бұрын
thanx Bhagyshree keep visiting and let me know if any help required from my end
@pritigohil7777 жыл бұрын
Good Explanation.
@Fahimkhan-by1qk3 жыл бұрын
Hello Mukesh, Thank you for uploading all these resourceful video. I am having an issue which not able to get copyFileToDirectory(File srcFile, File destDir) for FileUtils class. What should I do? Note: my project is maven project and I have added commons-io plug in. Thanks in advance for any help.
@Mukeshotwani3 жыл бұрын
HI Fahim, From Selenium 3.6 you can use FileHandler class learn-automation.com/how-to-use-filehandler-class-in-selenium-for-screenshot/
@Fahimkhan-by1qk3 жыл бұрын
@@Mukeshotwani Got it. Thanks Mukesh.
@nagagsalka53719 жыл бұрын
Mukesh, thanks for "Interface" explanation............. I did not know, we can't create OBJECT for interface.
@Mukeshotwani9 жыл бұрын
+Nagag Salka We can not create object of Interface because as per java until your class is not fully implemented we can not create object.
@dayanidhibisoyi69089 жыл бұрын
i like it very much....nice vedio......keep it up ...........please share ......how we do data validation in webdriver......Thanks a lot
@Mukeshotwani8 жыл бұрын
+dayanidhi bisoyi Hi Dayadihi, what do you mean by data validation? If you can explain in brief then I can help you.
@syedalam47297 жыл бұрын
Hello Mukesh, I was wonder if you any any interview banks?
@vishnu18893 жыл бұрын
It worked for me. Thanks. import java.io.File; import java.io.IOException; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; File scrnshot = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); FileHandler.copy(scrnshot, new File("folder structure" +driver.getTitle()+".png"));
@kishore76dhaka4 жыл бұрын
Excellent
@Mukeshotwani4 жыл бұрын
Thanks Towhid
@nayanaith8 жыл бұрын
Thank you so much putting this much effort for this Mukesh. May God bless you..!
@Mukeshotwani8 жыл бұрын
+Nayanajith Bandara Thank you so much Nayanajith Happy weekend.
@242424abhishek7 жыл бұрын
Hi Mukesh it is a very owsm explanation. As u say in the last we can add a screenshot in the report so please send me the url of those video in which i can learn how can take screenshot in the report.
@sujitsrinivasan86967 жыл бұрын
Mukesh , did u have the video on how to get multiple Screen Shot and save it in a Word document which was request below???? i also need it
@nagagsalka53718 жыл бұрын
Super.....................
@Mukeshotwani8 жыл бұрын
thnx
@monimathur71788 жыл бұрын
awesome explanation!!
@Mukeshotwani8 жыл бұрын
+Moni Mathur Hey Moni happy learning :)
@arunaarao8 жыл бұрын
very helpful.Thanks
@Mukeshotwani8 жыл бұрын
Welcome Aruna. Keep visiting.
@malikah71453 жыл бұрын
Did you record yours codes in GITHUB?
@Mukeshotwani3 жыл бұрын
Hi Malikah, try this from your end and let me know if you face any issue.
@SNEHASINGH-wq4mv4 жыл бұрын
Mukesh can u please share complete details on assertions.and how we can use in our projects
@Mukeshotwani4 жыл бұрын
HI Sneha, I have 2 videos on Assertion on my channel.Pleas check Assert and Soft Assert on my channel.
@faissrizz7 жыл бұрын
Superb!!!
@hmdraza6 жыл бұрын
Thanks, it worked
@Mukeshotwani6 жыл бұрын
Cheers Raza
@roliapanna80976 жыл бұрын
Hi Mukesh. Thanks for your wonderful video .Can you help out out please .I am trying to do screenshot but is showing me error my code is below TakesScreenshot ts=(TakesScreenshot)driver; File src=ts.getScreenshotAs(OutputType.FILE); FileUtils. Dot is not working thanks
@tammireddyprameela96904 жыл бұрын
Hi Mukesh, Can we do image comparision and text comparison on same image using selenium? If not what is the best tool with selenium to compare image and text on image
@Mukeshotwani4 жыл бұрын
Hi Tammireddy, Selenium can capture screenshots only but using Tesseract OCR you can read images too kzbin.info/www/bejne/a3XUiGyBhZKUh9E
@juanpabloreyesgomez90055 жыл бұрын
Excelent explication
@Mukeshotwani5 жыл бұрын
Thanks Juan :) Keep learning and let me know if any help required from my side.
@Rahul-rt9nq8 жыл бұрын
thanks mukesh
@Mukeshotwani8 жыл бұрын
Welcome Manas.. Keep visiting.
@surbhichawla933710 ай бұрын
Hi Mukesh, This is really helpful. I have one query : How do we take screenshot of a full page with scrolling?
@Mukeshotwani10 ай бұрын
Hi Surbhi, did you get the solution for this?
@joshithagunasekaran75357 жыл бұрын
Hi Mukesh, Your videos are very neat. You are a great teacher. I can see your effort in bringing all scenarios into videos. Thank you so much for that. I am trying to take screen shot. I am able to take a screen shot. But when i try to open, the file, it is full of junk characters instead of screen shot. How to address this.
@Mukeshotwani7 жыл бұрын
+GS Nunna Thanks Nunna 👌🏻🙏 right click on png file and open with web browser or system editor
@joshithagunasekaran75357 жыл бұрын
gotcha :-)
@deepanshumehta95954 жыл бұрын
Amazing
@Mukeshotwani4 жыл бұрын
Thank you! Cheers! Deepanshu
@manishkohli91159 жыл бұрын
Hey Bud, I've just started learning automation. Could do basic stuff but you took my automation skills to the next level. Thank you so much. Can i please get a contact so i can get in touch if required? Manish
@Mukeshotwani9 жыл бұрын
+Manish Kohli HI Manish thank you. I am glad you liked this. You can contact me anytime and you can get my details from my website. learn-automation.com/
@adarshrahangan62767 жыл бұрын
Hi Mukesh, I am getting this error in FAILURE EXCEPTION "java.io.IOException: Source 'C:\Users\Adarsh\AppData\Local\Temp\screenshot5434601471001346629.png' exists but is not a directory" after following the same steps in the first half of the video. Please help.
@monicagoyal82253 жыл бұрын
Thanks alot for creating an easy to understand and precise video.I am new to java and selenium and am curious to know why we did not create a constructor and then passing Webdriver driver as a parameter while creating a liabrary?
@socialmediahappy86973 жыл бұрын
wht u make the utility method as static
@madhavimourya11578 жыл бұрын
Hi Mukesh, Your tutorials are really good and easy to understand. I am beginner in Selenium and with your tutorials I am to understand it well. I am facing the below issue while trying out for capturing SS: I created folder in project for captured screenhot same as given in vedio. But when double clicking it, the png file is not getting opened. Please help me ,what else need to do. Also, if I save screenhot in some other drivers ,the .png file is getting opened.
@Mukeshotwani8 жыл бұрын
Hi Madhavi, yes if you want to open png file in Eclipse then right click on png file > Open with > System Editor or Web Browser.
@rajatsrivastava28383 жыл бұрын
Thanks Mukesh ...nice explaination. I wanna ask u one thing that in my case I am using date and time to be kept as part of screenshot file name. Is there any other possible way to call screenshot method every time after each step. i dont want to call it after every step.
@Mukeshotwani3 жыл бұрын
Yes Rajat, you can. You can use WebDriverListener.
@manishchaudhari46905 жыл бұрын
Can you please help,how to take screenshots of entire page if page is huge and requires scrolling down?
@vikram22947 жыл бұрын
Hello Mukesh, Which version of Selenium are we using in your tutorials?
@Mukeshotwani7 жыл бұрын
2.53.1
@vikram22947 жыл бұрын
Mukesh otwani Is it very different from 3.0?
@onebeartoe8 жыл бұрын
Good work, man! I watched this and some of your other videos; real good work. I am still trying to figure out if screen captures are possible with FirefoxDriver in headless mode.
@Mukeshotwani8 жыл бұрын
Hi , I have worked on PhantomJS headless mode so I was able to capture screenshots. Just give a try with PhnatomJS
@onebeartoe8 жыл бұрын
Alrighty then. Thanks again!
@raviahirwar68235 жыл бұрын
How can we take screenshots of application, when web page change and paste in word document? In my code it's replacing last one
@fabiocardoso25137 жыл бұрын
Hi, Mukesh. I've just subscribed your channel. I'm a beginner in automation too.. I'd like to know if you have any tip or if you know free courses or tutorials that could lead me to learn and improve my knowledge... (through your channel too.. which vid in specific to start?). Thanks in advance.
@shrikantkulal31068 жыл бұрын
hi mukesh.. im not able to use Utility library pls suggest me..when im using using Utility it shows red mark.
@julyuser10304 жыл бұрын
Good
@Mukeshotwani4 жыл бұрын
Thanks Buddy, Whats your name?
@aimran43106 жыл бұрын
Good Work Mukesh.. only one thing i replaced and it worked fine for my code FileHandler.copy(Source, new File("./ScreenShots/popup.png"));
@tasneemtechno40147 жыл бұрын
Hi Mukesh. Very informative tutorial. Can you please tell how we can avoid hard coding thing for chrome browser everytime?
@Mukeshotwani7 жыл бұрын
Hi Tasneem, In MAC i follow below steps. learn-automation.com/firefox-browser-on-mac-using-selenium-webdriver/ For Windows you can put them in System env variables.
@laxmirukka30288 жыл бұрын
hi, did you check in the code any where? i am looking forward to compare the images. if possible pls share the details thanks
@Mukeshotwani8 жыл бұрын
+Laxmi Rukka Hi Laxmi, its possible in Sikuli. PLease have a look to Sikuli.
@GoldenApples_7 жыл бұрын
Hi Mukesh, I tried to used in TestNG, be dnt knw where to get Utility library from, as it is not giving me autosuggestions for Utility.capturescreenshot??
@Mukeshotwani7 жыл бұрын
Hi Richa, We have created our own library and used it, You can also create n number of the library which you can use to reuse the code.
@MakeLearingEasy8 жыл бұрын
Thank You Sir.
@Mukeshotwani8 жыл бұрын
Welcome Gajanan
@aayushimukhija96576 жыл бұрын
Sir ur videos are really good and it helped me alot but i want to ask that how it is taking screenshot of full page even if its not showing full.page ......
@manmits8 жыл бұрын
Thank you Mukesh San. Your vids have been really helpful. For screenshots is there any way to get screenshot of complete scrollable webpage and not just the display area?
@Mukeshotwani8 жыл бұрын
Hey manmit by default Selenium will take complete screenshot only :)
@03bca6 жыл бұрын
Hi Mukesh, Great video..good work. I have a question on FileUtils method. I am not able to use it as it is not showing any suggestion. I have already added Apache POI lib to access commons methods, still no luck. Please suggest. Regards, Ritu Pathak
@Mukeshotwani6 жыл бұрын
Hi Ritu, In Selenium latest version you won't get commons-io (for screenshot) so we need to add explicitly. Please try and let me know if still any issue commons-io commons-io 2.6
@03bca6 жыл бұрын
Thank you, it is working fine now.
@rupapatil66825 жыл бұрын
Hi Mukesh, I have quick question about capture screenshot by using TestNG Listener , as we know if test case failed we need to take screen shot for sending report to developers to fix the specific issue. How can we do Draw Border or Change Color or Flash any specific Web Elements Failure with screenshot & send to developers by using TestNG Listener. Thanks
@ankitagarwal96836 жыл бұрын
Hi Mukesh, Please provide the link in which you have explained to take screenshot and attach it to report
@annetnancy37916 жыл бұрын
Hi Mukesh, From where we need to import FileUtil class ?
@banasmikbehera18077 жыл бұрын
Hallo.. nice video. I want to know why we want libraries, in first step we can also take screenshot then why we can create utility for that????
@Mukeshotwani7 жыл бұрын
We use or create library so that we can reuse them.
@banasmikbehera18077 жыл бұрын
thanks sir....
@PrasannaLakshmi747 жыл бұрын
Hi Mukesh, This is a good tutorial to understand how to capture screen shots using selenium web driver. But, I am finding the error when I run teh same code that you show on your video, I am not using TestNG but java.
@1987anupam7 жыл бұрын
Hi Mukesh , i tried using the same code written by you but i am not able to use annotation. it is not providing the option of annotation after Writting @Test, plzz suggest what to do in that case to run using test ng
@seemaahuja17507 жыл бұрын
Hi Mukesh, First of all Thanks a ton for the excellent vedios. I have been unable to view your vedios recently. I get Udemy ads infinitely and the learning vedio doesnt work. This is happening since last few days. Kindly help me if there is a solution to this.
@staulik4 жыл бұрын
First of all congrat for your work!!... I'm facing a problem, why the highlight do not appear in my screenshot??
@Mukeshotwani4 жыл бұрын
Hi Silvio, highlight part is using JS so in screenshot it will not capture.
@bachelorkitchen75837 жыл бұрын
Hi Mukesh, Is it possible to automate siebel application using Selenium. I work on siebel application.As of now i do manually. Thanks.
@Mukeshotwani7 жыл бұрын
+KHEL KHEL MEIN not sure because not tried till yet. If it is on web then yes we can do that
@Yoganandareddys6 жыл бұрын
Thanks sir
@Mukeshotwani6 жыл бұрын
Thanks Yogananda :)
@pareshnit64997 жыл бұрын
Hi Mukesh, Thank u for uploading this video but doing same code but there is exception like Exception while taking screenshotDestination '.\Resources\BrowesrOpen.png' exists but is a directory so what to do
@Mukeshotwani7 жыл бұрын
Hi Paresh, Please check the path again. Its path issue only. use below code ./yourlocalfoldername/screenshot name.png or you can give full path where you need to store the password like C:\\Folder\ ame.png or C:/Folder/name.png
@pareshnit64997 жыл бұрын
Thank u sir....
@satyayarlagadda39557 жыл бұрын
Hi Mukesh, If we want particular part of screenshot in webpage then what is the solution ????
@littlevrinda63906 жыл бұрын
Thanks for this tutorial. I have just started learning selenium. I found FirePath is not working and i heard there is a better xpath tool ChroPath, could you please make tutorial for ChroPath tool. Thank you.
@sunilk.c53678 жыл бұрын
Excellent tutorial,, very easy to understand. Can you send me link of screen shot for failed test cases?
@Mukeshotwani8 жыл бұрын
Thanks Sunil I have another video for this kindly check.
@sunilk.c53678 жыл бұрын
Thank you Mukesh
@Mukeshotwani8 жыл бұрын
Welcome Sunil
@sunilk.c53678 жыл бұрын
It was really awesome teaching.. Kindly let me where can I find for the validation of pages or links or data with this use of Page Object Model? I mean do we need to validate in test case or java class?
@Mukeshotwani8 жыл бұрын
You can validate in Pages. Kindly refer my page object model video
@vaishalijain55797 жыл бұрын
hi Mukesh ..your videos are very informative and nice.I was running the same code of yours and observe that although i am able to take screenshot but getting too many errors like Sep 11, 2017 9:58:49 PM org.openqa.selenium.remote.ErrorCodes to Status INFO: HTTP Status: '404' -> incorrect JSON status mapping for 'unknown error' (500 expected) [Utils] Attempting to create C:\Users\MOHIT JAIN\eclipse-workspace\selenium_demo\test-output\Default suite\Default test.html [Utils] Directory C:\Users\MOHIT JAIN\eclipse-workspace\selenium_demo\test-output\Default suite exists: true [Utils] Attempting to create C:\Users\MOHIT JAIN\eclipse-workspace\selenium_demo\test-output\Default suite\Default test.xml [Utils] Directory C:\Users\MOHIT JAIN\eclipse-workspace\selenium_demo\test-output\Default suite exists: true FAILED: screenshot Can you please help me out with this.
@Mukeshotwani7 жыл бұрын
Is this fixed? Vaishali
@vaishalijain55797 жыл бұрын
Mukesh otwani yes .Thnx for help
@greengobis7 жыл бұрын
Hi Mukesh, While taking screenshot of a static page, I am getting the screenshot perfectly in a drive(D or E) but coming as text although it has .png or .jpg extension in the folder created under a project. Can you please explain this issue. Thanks, Debi
@Mukeshotwani7 жыл бұрын
+Debiprasad Panda right click open as system editor
@greengobis7 жыл бұрын
Yes it opened...but i have to go for such a step always then... It was not there in your case. Can you please help me here
@harshithashetty21104 жыл бұрын
Can you please help me with capturing screenshot and paste it directly into editor
@Mukeshotwani4 жыл бұрын
Hey Harshitha what do you mean by editor? any example.
@harshithashetty21104 жыл бұрын
@@Mukeshotwani Sorry editor we are using in application. I just wanted solution to capture screenshot and to paste directly into editor
@Mukeshotwani4 жыл бұрын
I mean what do you mean paste into editor can u explain this ?
@harshithashetty21104 жыл бұрын
@@Mukeshotwani For ex: I will be writing mail in gmail body ... I enter text and I want to add screenshot/inline attachment into gmail body. Hope you got now
@Mukeshotwani4 жыл бұрын
@@harshithashetty2110 in this case once you get screenshot as file then you need to follow the same step which we follow manually like click on attachment and select screenshot.
@abhachhabra27624 жыл бұрын
How can we do File source=ts.getScreenshotAs(OutputType.FILE).source is an object or variable?how can object store a file
@Mukeshotwani4 жыл бұрын
source is just a reference variable, you can name it anything like xyz, abc. In next statement we need to use this variable and store screenshot in local disk. Use FileHandler class as well for storing screenshot learn-automation.com/how-to-use-filehandler-class-in-selenium-for-screenshot/
@abhachhabra27624 жыл бұрын
Thakyou so much bye
@asisharavind6556 жыл бұрын
Hi Mukesh. I’m unable to find the FileUtils class. How do I need to download it? Please help
@Mukeshotwani6 жыл бұрын
Hi Asish, In Selenium new versions this package does not come. You can add them separately commons-io commons-io 2.4
@TheUndisputedEraSince19897 жыл бұрын
Hi I want to know about the procedure how to take screenshots using listener. Could you guide me plz.
@Mukeshotwani7 жыл бұрын
Hi Deba, I have explained the same concept in blog kindly check and implement the same learn-automation.com/what-is-listeners-in-selenium-webdriver/
@tanyavohra13618 жыл бұрын
Hello Mukesh, I have a question. As you said we cannot create object of an interface. But here, WebDriver is also an interface and the object has been created (WebDriver driver = new FirefoxDriver). Can you pls assist here?
@Mukeshotwani8 жыл бұрын
Hi Tanya, Yes so we are creating object of FirefoxDriver and keeping reference only in WebDriver. I have uploaded video on interface as well so you can visit that too. Kindly check and let me know if still any doubt. kzbin.info/www/bejne/bHbVZqN_es6mmas&feature=autoshare
@maniratnampatchigolla4198 жыл бұрын
hi mukesh can you please tell me how to capture the partial/selected portion of image as a screen shot.
@Mukeshotwani8 жыл бұрын
Hi Mani, Below post will guide you for the same www.software-testing-tutorials-automation.com/2015/01/how-to-capture-element-screenshot-using.html
@anand_kanekal7 жыл бұрын
Can you tell me why the eclipse didn't give an error while mentioning the screenshot path? It should accept \\(Double slash) in String, right?
@Mukeshotwani7 жыл бұрын
Hi Anand, Java supports both / and \\ so it should not give any error.
@sambapathi1816 жыл бұрын
sir actually in my selenium fileutils class is not supported it will shows exception how can i rectify
@Mukeshotwani6 жыл бұрын
Hi Samba, Yes I too found this issue and I explained the same in below post learn-automation.com/how-to-capture-screenshot-in-selenium-webdriver/ Kindly add above mentioned dependency
@sambapathi1816 жыл бұрын
sir i mean in my eclipse fileutils class option is not shown
@razvanvancea90026 жыл бұрын
The line "FileUtils.copyFile();" has been updated to "FileHandler.copy();"
@bishalghosh73484 жыл бұрын
what about the file name being the same for all screenshots? that seems like bad coding practice to me
@Mukeshotwani4 жыл бұрын
We can append timestamp with report and screenshot both. Thank you so pointing this out.
@НикольКузнецова-ъ5з7 жыл бұрын
Hi! Mukesh, how can I make a screenshot of full-page by selenium 3?