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 headless chrome browser option for UI only tests #313

Open
toschneck opened this issue Feb 20, 2018 · 0 comments
Open

add headless chrome browser option for UI only tests #313

toschneck opened this issue Feb 20, 2018 · 0 comments
Labels
Milestone

Comments

@toschneck
Copy link
Contributor

toschneck commented Feb 20, 2018

Like described on Google Dev Blog Chrome 59+ supports a headless mode. Due to this fact we can us this for "UI only" tests with Sakuli.

Solution:

  • configure the browser configuration of sahi like in the attached linux.xml
  • user as browser chrome_headless
FROM consol/sakuli-ubuntu-xfce:v1.1.0
COPY linux.xml $SAKULI_ROOT/sahi/config/browser_types/
ENV TESTSUITE_BROWSER=chrome_headless
<browserTypes>
  ....
    <browserType>
        <name>chrome_headless</name>
        <displayName>Chrome Headless</displayName>
        <icon>chrome.png</icon>
        <path>/usr/bin/google-chrome</path>
        <options>--incognito --headless --disable-gpu --remote-debugging-port=9222 --user-data-dir=$userDir/browser/chrome/profiles/sahi$threadNo --start-maximized --no-default-browser-check --no-first-run --disable-infobars --proxy-server=localhost:9999 --disable-popup-blocking</options>
        <processName>chrome</processName>
        <capacity>5</capacity>
    </browserType>
</browserTypes>

TODO:

  • Add chrome_headless as additional browser like firefox_portable
  • Add Documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant