Skip to content

Commit

Permalink
stash
Browse files Browse the repository at this point in the history
  • Loading branch information
duncan3dc committed Oct 1, 2017
1 parent 49b7d7c commit acd91e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Drivers/Chrome.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ public function __construct()
*/
public function getDriver()
{
return RemoteWebDriver::create("http://localhost:9515", DesiredCapabilities::chrome());
$options = (new ChromeOptions)->addArguments(["--headless"]);

$capabilities = DesiredCapabilities::chrome()->setCapability(ChromeOptions::CAPABILITY, $options);

return RemoteWebDriver::create("http://localhost:9515", $capabilities);
}


Expand Down

0 comments on commit acd91e6

Please sign in to comment.