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: Original page that opens by default 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

zoom

possible Solution for Chrome is calling this command .
It only works in Chrome and IE

  Javascript execute document.body.style.zole = "30%"  

Further reading:

*


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -