Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add property to setup screen size for headless and desktop mode without specifying 'headless' anywhere except one place in configuration.properties #4799

Closed
VAftandiliantsEPAM opened this issue Feb 5, 2024 · 0 comments · Fixed by #4807
Labels
feature New feature or request
Milestone

Comments

@VAftandiliantsEPAM
Copy link

VAftandiliantsEPAM commented Feb 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
2 participants