Closed PieterDC closed 7 years ago
It looks like #19 is trying to add that parameter, along with some others.
Merged PR https://github.com/arknoll/ansible-role-selenium/pull/31 to help address this issue. Will be making a release shortly.
@arknoll: Thanks for merging!
@PieterDC: The role has a new parameter selenium_xvfb_args which is set to the following value per default:
--server-args='-screen 0, 1920x1080x24'
This seems to be exactly your use case.
Looks like this can be closed, as it's in 2.2.0!
Some of my Selenium tests require a bigger screen resolution than 640x480 which is apparently the default resolution of xvfb.
https://github.com/seleniumhq/selenium-google-code-issue-archive/issues/5828#issuecomment-192123706 explains how xvfb can be started with a bigger resolution. Which works when manually replaced
ExecStart=/usr/bin/xvfb-run /usr/bin/java -client -jar {{ selenium_install_dir }}/selenium/selenium-server-standalone-{{ selenium_version }}.jar
in templates/selenium-unit.j2 withExecStart=/usr/bin/xvfb-run -s "-screen 0, 1920x1080x24" /usr/bin/java -client -jar {{ selenium_install_dir }}/selenium/selenium-server-standalone-{{ selenium_version }}.jar
It would be handy if ansible-role-selenium would support this with a parameter.