Selenium: chrome driver makes screenshot just of visible part of page

后端 未结 4 664
不知归路
不知归路 2020-12-10 05:51

I need to do screenshot of full page using chrome driver, but it makes it partly.

File screenshotFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType         


        
4条回答
  •  一向
    一向 (楼主)
    2020-12-10 06:17

    This is a known bug: https://code.google.com/p/chromedriver/issues/detail?id=294 (Only for Chrome driver, firefox driver works fine)

提交回复
热议问题