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

ความคิดเห็น • 31

  • @softwaretestingmentor
    @softwaretestingmentor  4 ปีที่แล้ว

    🔸FREE Training's at training.rcvacademy.com 🔔SUBSCRIBE to CHANNEL: bit.ly/2YGU6JM

  • @xXMrThomasXx
    @xXMrThomasXx 11 หลายเดือนก่อน

    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 ;)

  • @medinins1221
    @medinins1221 4 ปีที่แล้ว +1

    Thank you so much sir, all the videos are informative and explained really well.

  • @waheedabbas3915
    @waheedabbas3915 3 ปีที่แล้ว +1

    thanks for sharing and for awesome explanations

  • @shivaagarwal7406
    @shivaagarwal7406 3 ปีที่แล้ว +1

    Thanks a lot for this useful session...

  • @pragyachauhan7377
    @pragyachauhan7377 3 ปีที่แล้ว

    Thank you...it's working in my case as well after refering your video...many thanks🙏

  • @nooraamin8348
    @nooraamin8348 3 ปีที่แล้ว

    simply just great video

  • @maroofraktim293
    @maroofraktim293 3 ปีที่แล้ว +1

    You're awesome sir

  • @Mangala899.
    @Mangala899. 7 หลายเดือนก่อน

    Very nice information

  • @vigneshsivan1674
    @vigneshsivan1674 4 ปีที่แล้ว +1

    really super sir.....

  • @mohit_05
    @mohit_05 3 ปีที่แล้ว +1

    Thanks 👍

  • @vamsiviswanath-l2x
    @vamsiviswanath-l2x 7 หลายเดือนก่อน

    CAN you make vedio on screen shot saving in ms word document

  • @chandrashekar-tc4rz
    @chandrashekar-tc4rz 10 หลายเดือนก่อน

    Can I do same in the interview

  • @vishalmutha6761
    @vishalmutha6761 ปีที่แล้ว

    How to use the code for taking screenshot in framework (different classes)?

  • @nainagupta4949
    @nainagupta4949 2 ปีที่แล้ว

    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);
    }
    }

  • @Nikhilkumar-ho1kv
    @Nikhilkumar-ho1kv 3 ปีที่แล้ว

    Sir instead of screenshot can be make gifs of failed test case? Please make a video on the same.

  • @manivannank5836
    @manivannank5836 4 ปีที่แล้ว

    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

  • @bikramdevpanigrahi2289
    @bikramdevpanigrahi2289 3 ปีที่แล้ว

    sir can you plz share the link where u download apache?

  • @maheshpawar6834
    @maheshpawar6834 2 ปีที่แล้ว

    is date class deprecated ? i am not getting current date

  • @jagankumar9156
    @jagankumar9156 4 ปีที่แล้ว

    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 ??

  • @MUSTAPHA-QA
    @MUSTAPHA-QA ปีที่แล้ว +1

    like number 555 (y) thank you for the efforts

  • @atulughade
    @atulughade 3 ปีที่แล้ว

    page no found showing

  • @dilawarkhan4085
    @dilawarkhan4085 4 ปีที่แล้ว

    Not getting the folder.
    getting below error
    org.openqa.selenium.remote.UnreachableBrowserException

    • @softwaretestingmentor
      @softwaretestingmentor  4 ปีที่แล้ว +1

      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

  • @ROCKY_BHAI2112
    @ROCKY_BHAI2112 ปีที่แล้ว

    Bhai kuch to bata kaha se kya aaya
    Itna aata to Teri video dekhne nahi aaate

  • @neemusiccompany
    @neemusiccompany 9 หลายเดือนก่อน

    U r way of explanation is very starnge its hard to understand what you are showing cant understand.