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.
📲 Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.