Selenium WebDriver Tutorial #38 - How to Take Screenshot in Selenium
ฝัง
- เผยแพร่เมื่อ 10 ก.พ. 2025
- Get all my courses for USD 5.99/Month - bit.ly/all-cou...
🔸FREE Training's at training.rcvac... 🔔SUBSCRIBE to CHANNEL: bit.ly/2YGU6JM
In this selenium webdriver tutorial we will learn how to take Screenshot in Selenium WebDriver.
Selenium provides TakesScreenshot interface to capture the screenshots during script execution. TakesScreenshot interface has method getScreenshotAs( ) which is used for taking screenshots.
Taking screenshots when the test case fails is very common requirement in any test automation and your test automation framework should have capability to take screenshots in case you need them for reporting and debugging purposes.
Help me in spreading the knowledge, please hit LIKE, SHARE and SUBSCRIBE for latest tutorials. More tutorial playlists below:
✅ ALL PLAYLISTS (Software Testing Mentor)🔸 / softwaretes. .
✅ ALL PLAYLISTS (RCV Academy)🔸 www.youtube.co....
✅ JIRA BEGINNER TUTORIAL🔸 bit.ly/jira-beg...
✅ JIRA WORKFLOW TUTORIAL🔸 bit.ly/2EzKOEB
✅ JIRA ADMINISTRATION TUTORIAL🔸 bit.ly/36MPPFR
✅ JIRA TUTORIAL INTERMEDIATE🔸 bit.ly/Atlassia...
✅ JIRA TUTORIALS🔸 bit.ly/jira-tut...
✅ ZEPHYR TUTORIAL🔸 bit.ly/zephyr-f...
✅ SOAPUI TUTORIAL🔸 bit.ly/Sopui-tu...
✅ JSONPath TUTORIAL🔸 bit.ly/2sIZIFG
✅ POSTMAN TUTORIAL🔸 bit.ly/2PBbhI7
✅ ISTQB AGILE TESTER CERTIFICATION TUTORIAL🔸 bit.ly/istqb-ag....
✅ ISTQB FOUNDATION LEVEL CERTIFICATION TUTORIAL🔸 bit.ly/istqb-fo....
✅ CUCUMBER SELENIUM TUTORIAL🔸 bit.ly/cucumber...
✅ TESTRAIL TUTORIAL🔸 bit.ly/testrail...
✅ AGILE TUTORIALS🔸 bit.ly/agile-tu...
✅ PYTHON TUTORIALS🔸 bit.ly/python-p....
✅ PYTHON BEHAVE TUTORIALS🔸 bit.ly/python-b...
✅ PRACTITEST TUTORIAL🔸 bit.ly/practite...
✅ JAVA TUTORIAL🔸 bit.ly/2F1iL1B
✅ ZEPHYR TUTORIAL🔸 bit.ly/zephyr-f...
🔶 ENROL IN MANY FREE TRAININGS ON RCV ACADEMY PORTAL 🔶
training.rcvaca...
🔶 FOLLOW US ON TWITTER 🔶
/ rcvacademy
/ swtmentor
/ mrmverma
🔶 LIKE US ON FACEBOOK 🔶
/ softwaretest. .
/ rcvacademy47
🔶 OUR TUTORIAL WEBSITES 🔶
www.softwarete...
www.rcvacademy...
🔶 GET MY TRAININGS ON UDEMY 🔶
www.udemy.com/...
#SeleniumTutorial #SeleniumTraining #TestAutomation #SeleniumWebDriverTutorial #SeleniumWebDriver #SoftwareTesting #RcvAcademy #SoftwareTestingMentor
🔸FREE Training's at training.rcvacademy.com 🔔SUBSCRIBE to CHANNEL: bit.ly/2YGU6JM
J am laearning with you on the begining and you are really good teacher :) Thank you and I back to the lesson :)
Good Day Master ;)
Thank you so much sir, all the videos are informative and explained really well.
You are most welcome.
Stay connected for more!
thanks for sharing and for awesome explanations
Thanks a lot for this useful session...
Thank you...it's working in my case as well after refering your video...many thanks🙏
simply just great video
You're awesome sir
Very nice information
Thanks! Keep watching and sharing.
really super sir.....
Thanks and welcome
Thanks 👍
Welcome 👍
Keep watching for more videos.
CAN you make vedio on screen shot saving in ms word document
Can I do same in the interview
How to use the code for taking screenshot in framework (different classes)?
Hello,
I tried extending the browser until class where is defined webdriver but I am getting an error on the driver in the screenshot code saying to create local variable for driver:
public class TakeScreenshot extends BrowserUtil{
public void Screen_Shot()
{
File screenshotFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);
}
}
Sir instead of screenshot can be make gifs of failed test case? Please make a video on the same.
I am using Selenium with C#, get screen shot is not capturing the full image of the web page i.e viewable area is not captured fully. Could please help me on this
sir can you plz share the link where u download apache?
is date class deprecated ? i am not getting current date
How to save one or more JPG file same name ?? eg- Img1 is having YT home page SS and Img1(same file name) is having Google home page SS... How to achieve this ??
like number 555 (y) thank you for the efforts
page no found showing
Not getting the folder.
getting below error
org.openqa.selenium.remote.UnreachableBrowserException
Hi Dilawar, You might be using incompatible browser driver. Please check if you are using 32 bit or 64 bit OS and download the browser driver accordingly. That should fix this issue. Check more details in the link below:
stackoverflow.com/questions/17066424/unreachablebrowserexception-trying-to-launch-in-selenium-webdriver-using-iedrive
Regards, Manish
Bhai kuch to bata kaha se kya aaya
Itna aata to Teri video dekhne nahi aaate
U r way of explanation is very starnge its hard to understand what you are showing cant understand.