filmov
tv
Selenium Python Tutorial #32 - How to Capture Screenshot in Selenium

Показать описание
In this Selenium Python Tutorial, we will learn how to capture screenshot in selenium. When doing automation you need to take screenshots at many places like on failures or specific verification points so that you can see where the failure has happened and can debug it easily.
Selenium python provides built-in methods that you can use to capture screenshots.
get_screenshot_as_file(filename) - Saves a screenshot of the current window to a PNG image file. Returns False if there is any IOError, else returns True. Use full paths in your filename.
save_screenshot(filename) - Saves a screenshot of the current window to a PNG image file. Returns
False if there is any IOError, else returns True. Use full paths in your filename.
screenshot(filename) - Saves a screenshot of the current element to a PNG image file. Returns
False if there is any IOError, else returns True. Use full paths in your filename.
Help me in spreading the knowledge, please hit LIKE, SHARE, and SUBSCRIBE for the 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 🔶
#SeleniumPythonTutorial #PythonSelenium #SeleniumPython #PythonSeleniumTutorial #SeleniumWebdriver #TestAutomation #SoftwareTesting #RcvAcademy #SoftwareTestingMentor
Join this channel to get access to perks:
Selenium python provides built-in methods that you can use to capture screenshots.
get_screenshot_as_file(filename) - Saves a screenshot of the current window to a PNG image file. Returns False if there is any IOError, else returns True. Use full paths in your filename.
save_screenshot(filename) - Saves a screenshot of the current window to a PNG image file. Returns
False if there is any IOError, else returns True. Use full paths in your filename.
screenshot(filename) - Saves a screenshot of the current element to a PNG image file. Returns
False if there is any IOError, else returns True. Use full paths in your filename.
Help me in spreading the knowledge, please hit LIKE, SHARE, and SUBSCRIBE for the 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 🔶
#SeleniumPythonTutorial #PythonSelenium #SeleniumPython #PythonSeleniumTutorial #SeleniumWebdriver #TestAutomation #SoftwareTesting #RcvAcademy #SoftwareTestingMentor
Join this channel to get access to perks:
Комментарии