Selenium WebDriver Tutorial #38 - How to Take Screenshot in Selenium

preview_player
Показать описание
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:

🔶 ENROL IN MANY FREE TRAININGS ON RCV ACADEMY PORTAL 🔶

🔶 FOLLOW US ON TWITTER 🔶

🔶 LIKE US ON FACEBOOK 🔶

🔶 OUR TUTORIAL WEBSITES 🔶

🔶 GET MY TRAININGS ON UDEMY 🔶
#SeleniumTutorial #SeleniumTraining #TestAutomation #SeleniumWebDriverTutorial #SeleniumWebDriver #SoftwareTesting #RcvAcademy #SoftwareTestingMentor
Рекомендации по теме
Комментарии
Автор

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

xXMrThomasXx
Автор

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

medinins
Автор

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

pragyachauhan
Автор

thanks for sharing and for awesome explanations

waheedabbas
Автор

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

vamsiviswanath-lx
Автор

Thanks a lot for this useful session...

shivaagarwal
Автор

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

vishalmutha
Автор

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

Nikhilkumar-hokv
Автор

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

}

nainagupta
Автор

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

manivannank
Автор

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

jagankumar
Автор

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

bikramdevpanigrahi
Автор

is date class deprecated ? i am not getting current date

maheshpawar
Автор

like number 555 (y) thank you for the efforts

MUSTAPHA-QA
Автор

Not getting the folder.
getting below error

dilawarkhan
Автор

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

neemusiccompany
Автор

Bhai kuch to bata kaha se kya aaya


Itna aata to Teri video dekhne nahi aaate

ROCKY_BHAI