Take Screenshot with Selenium Webdriver
You can take screenshot of browser with browser. Python: you can use get_screenshot_as_file(path_to_save). # -*- coding: UTF-8 -*- import unittest from selenium import webdriver class TestClass(unittest.TestCase): def setUp(self): self.driver = webdriver.Firefox() def test_MahsumAkbasNet_Pass(self): self.driver.get(“http://www.mahsumakbas.net/selenium”) self.driver.save_screenshot(“D:\\python_selenium_screenshot.jpg”) def tearDown(self): self.driver.quit() if __name__… Read More »