Selenium Python Tutorial #66 - Take Screenshot on Failure in Pytest

preview_player
Показать описание
In this Selenium Python Tutorial, we will learn how to take screenshot on failure in pytest and embed it in Selenium Python HTML report.

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:
Рекомендации по теме
Комментарии
Автор

Hi, can you please make a video on this how to debug in this framework using debugger at certain breakpoint????

sankalpsaxena
Автор

Hi, Thanks for your video. I have the screenshots working, but is there a way to record a video of the entire test to see what happened before the test failed?

ChristopherJohnson-stfn
Автор

Hi sir, can you please make a videos on selenium with python interview series for experienced people...
Cracking the interviews

sateeshkumar
Автор

Hi, Thank you for your explanation. It is really wonderful. One request here can anyone help me how to keep only the link of screenshot in the reports instead of actual image. So that the user can only clicks on the link of screenshots and can see in another tab.

ranjeetkumar
Автор

Hi, Thank you. Can you please share the code in desc ?

DebaprasadDas-zt
Автор

Sir, I think you have just solved my headache. in like 5 minutes :D I need to check it tomorrow but damn if this is JUST so simple

karolmichalik
Автор

Hello, Manish. Thank you for your video. I have a question: I have YAML files to run test cases with. How to run and debug test cases without creating command lines? I feel like it takes more time to write and execute tests in PyCharm than it should. For example, to debug the test I have to attach the process and make sure that the command line is correct. Otherwise, it would fail and be very hard to figure out why.

tetianakravchuk
Автор

Hi sir, how did you link the driver in setup fixture and pytest_runtest_makereport hook? It's not being recognised in my script and it's throwing me an error that the variable isn't defined

vishwasrchonu
Автор

How to add screenshots for positive test cases too ?

kamalnayan
Автор

I haven implemented this but when this report is sent over the mail only the screen shot is seen on same system only
Is there any way that we can see the screen shot on other systems also

multiskilltechnician
Автор

hi, can someone help me with reports. My report are not showing logs details in it

moizahmed
Автор

How can i add my own data on Table Row

YogeshBecse
Автор

Can I get a screenshot on html report even if it is PASSED?

hatoji
Автор

This thing get's complex .. pretty quickly 😣😣😣

DataWiseDiscoveries
Автор

I am spending a long time but I unable to get a screen shot but generating link Please make another shot vedio for selenium python in linux based

manikandanv
Автор

Hi everyone. I have got this error :
INTERNALERROR>
NameError: name 'driver' is not defined


I think driver itself will be handled by pytest (since there is a fixture)
How to make things work ya? Can someone help me

Yuri-isrb
Автор

This doesn't work !!! below error comes:

INTERNALERROR> AttributeError: 'function' object has no attribute 'get_screenshot_as_file'

aditiandsalin
join shbcf.ru