Skip to content

Commit

Permalink
#313 Added headless Chrome browser type
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Hofmann committed Aug 13, 2018
1 parent 6159f24 commit f0bfe0b
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/core/src/main/resources/sahi/config/browser_types/linux.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,15 @@
<processName>chrome</processName>
<capacity>5</capacity>
</browserType>

<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>
<!-- @formatter:on -->
15 changes: 15 additions & 0 deletions src/core/src/main/resources/sahi/config/browser_types/mac.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,20 @@
<capacity>5</capacity>
<force>true</force>
</browserType>

<browserType>
<name>chrome_headless</name>
<displayName>Chrome Headless</displayName>
<icon>chrome.png</icon>
<path>open -n -a "Google Chrome.app"</path>
<options>--args --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>"Google Chrome"</processName>
<capacity>5</capacity>
<force>true</force>
</browserType>
</browserTypes>
<!-- @formatter:on -->
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@
<capacity>5</capacity>
</browserType>

<browserType>
<name>chrome_headless</name>
<displayName>Chrome Headless</displayName>
<icon>chrome.png</icon>
<path>$ProgramFiles (x86)\Google\Chrome\Application\chrome.exe</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.exe</processName>
<capacity>5</capacity>
</browserType>
<browserType>
<name>safari</name>
<displayName>Safari</displayName>
Expand Down
10 changes: 10 additions & 0 deletions src/core/src/main/resources/sahi/config/browser_types/win64.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@
<capacity>5</capacity>
</browserType>

<browserType>
<name>chrome_headless</name>
<displayName>Chrome Headless</displayName>
<icon>chrome.png</icon>
<path>$ProgramFiles (x86)\Google\Chrome\Application\chrome.exe</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.exe</processName>
<capacity>5</capacity>
</browserType>

<browserType>
<name>safari</name>
<displayName>Safari</displayName>
Expand Down

0 comments on commit f0bfe0b

Please sign in to comment.