Styrow.dev
Question 69 of 99

How can capture screenshot in selenium.

Question

How can capture screenshot in selenium.

Answer

driver.get_screenshot_as_file(“filename”) with this method we can take screen shot.