firefox - Resize the web page during selenium automation run to capture a screenshot of whole page -
How can I change page size when running Selenium Automation? I want to capture the whole page during the failure, not a visible part of it.
Original page size:
Expected page size:
built-in capture page screenshot
Selenium Library Is the method that captures the entire page in a single screenshot.
It does not work in Chrome Fixed headset using Firefox or PhantomJS
Be sure to include the library in the settings. *** Settings *** Library Selenium Library *** Test Cassus *** # or a keyword, suite setup, ... Thing Open Browser $ {url} Maximize browser $ {browaster} Window capture page screenshot possible Solution for Chrome is calling this command . * zoom
It only works in Chrome and IE
Javascript execute document.body.style.zole = "30%" Further reading:
Comments
Post a Comment