Webdriver Screenshot

后端 未结 12 896
南方客
南方客 2020-11-30 00:57

When taking a screenshot using Selenium Webdriver on windows with python, the screenshot is saved directly to the path of the program, is there a way to save the .png file t

12条回答
  •  余生分开走
    2020-11-30 01:42

    Yes, we have a way to get screenshot extension of .png using python webdriver

    use below code if you working in python webriver.it is very simple.

    driver.save_screenshot('D\folder\filename.png')
    

提交回复
热议问题