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

Software Testing Mentor
Software Testing Mentor
12.1 هزار بار بازدید - 3 سال پیش - Get all my courses for
Get all my courses for USD 5.99/Month - https://bit.ly/all-courses-subscription
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.
Reference: https://selenium-python.readthedocs.i...

FULL Playlist: http://bit.ly/SeleniumPythonTutorial

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

Help me in spreading the knowledge, please hit LIKE, SHARE, and SUBSCRIBE for the latest tutorials. More tutorial playlists below:

✅ ALL PLAYLISTS (Software Testing Mentor)🔸 softwaretestingmentor
✅ ALL PLAYLISTS (RCV Academy)🔸  @rcvacademy
✅ JIRA BEGINNER TUTORIAL🔸 http://bit.ly/jira-beginner-tutorial
✅ JIRA WORKFLOW TUTORIAL🔸 http://bit.ly/2EzKOEB
✅ JIRA ADMINISTRATION TUTORIAL🔸 http://bit.ly/36MPPFR
✅ JIRA TUTORIAL INTERMEDIATE🔸 http://bit.ly/Atlassian-JIRA-tutorials
✅ JIRA TUTORIALS🔸 http://bit.ly/jira-tutorials
✅ ZEPHYR TUTORIAL🔸 http://bit.ly/zephyr-for-jira-tutorials
✅ SOAPUI TUTORIAL🔸 http://bit.ly/Sopui-tutorial
✅ JSONPath TUTORIAL🔸 http://bit.ly/2sIZIFG
✅ POSTMAN TUTORIAL🔸 http://bit.ly/2PBbhI7
✅ ISTQB AGILE TESTER CERTIFICATION TUTORIAL🔸  http://bit.ly/istqb-agile-tester-cert...
✅ ISTQB FOUNDATION LEVEL CERTIFICATION TUTORIAL🔸 http://bit.ly/istqb-foundation-level-...
✅ CUCUMBER SELENIUM TUTORIAL🔸 http://bit.ly/cucumber-selenium-tutorial
✅ TESTRAIL TUTORIAL🔸 http://bit.ly/testrail-tutorial
✅ AGILE TUTORIALS🔸 http://bit.ly/agile-tutorials
✅ PYTHON TUTORIALS🔸 http://bit.ly/python-programming-tuto...
✅ PYTHON BEHAVE TUTORIALS🔸 http://bit.ly/python-behave-tutorial
✅ PRACTITEST TUTORIAL🔸 http://bit.ly/practitest-tutorial
✅ JAVA TUTORIAL🔸 http://bit.ly/2F1iL1B
✅ ZEPHYR TUTORIAL🔸 http://bit.ly/zephyr-for-jira-tutorials

🔶 ENROL IN MANY FREE TRAININGS ON RCV ACADEMY PORTAL 🔶
http://training.rcvacademy.com/

🔶  FOLLOW US ON TWITTER 🔶
Twitter: rcvacademy
Twitter: swtmentor
Twitter: mrmverma

🔶 LIKE US ON FACEBOOK 🔶
Facebook: softwaretestingmentor
Facebook: rcvacademy47

🔶 OUR TUTORIAL WEBSITES 🔶
https://www.softwaretestingmentor.com
https://www.rcvacademy.com

🔶 GET MY TRAININGS ON UDEMY 🔶
https://www.udemy.com/user/manish68/

#SeleniumPythonTutorial #PythonSelenium #SeleniumPython #PythonSeleniumTutorial #SeleniumWebdriver #TestAutomation #SoftwareTesting #RcvAcademy #SoftwareTestingMentor

Join this channel to get access to perks:
@softwaretestingmentor
3 سال پیش در تاریخ 1400/02/18 منتشر شده است.
12,100 بـار بازدید شده
... بیشتر