You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add property to setup screen size for headless and desktop mode without specifying 'headless' anywhere except one place in configuration.properties
#4799
When we run test in headless mode (configuration.profiles=web/headless/chrome) for sites with responsive design some tests fail because of default headless screen size.
We’d like to have a property e.g. chrome.window.size or window.size where we can setup custom screen size for tests to pass without specifying headless mode again and it should apply for both desktop and headless profiles.
We’ve overcome this issue by adding web.driver.chrome.command-line-arguments=--window-size=1920,1080 --headless in the environment.properies, but this makes it hard to explain to the customer why we need to set 'headless' in several places.
The text was updated successfully, but these errors were encountered:
When we run test in headless mode (
configuration.profiles=web/headless/chrome
) for sites with responsive design some tests fail because of default headless screen size.We’d like to have a property e.g.
chrome.window.size
orwindow.size
where we can setup custom screen size for tests to pass without specifying headless mode again and it should apply for both desktop and headless profiles.We’ve overcome this issue by adding
web.driver.chrome.command-line-arguments=--window-size=1920,1080 --headless
in the environment.properies, but this makes it hard to explain to the customer why we need to set 'headless' in several places.The text was updated successfully, but these errors were encountered: