mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
Merge branch '3.3.x'
This commit is contained in:
commit
e9740c6291
1 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
use Facebook\WebDriver\Chrome\ChromeOptions;
|
||||
use Facebook\WebDriver\WebDriverBy;
|
||||
use Facebook\WebDriver\Exception\WebDriverCurlException;
|
||||
use Facebook\WebDriver\Remote\RemoteWebDriver;
|
||||
|
@ -75,6 +76,8 @@ class phpbb_ui_test_case extends phpbb_test_case
|
|||
|
||||
try {
|
||||
$capabilities = DesiredCapabilities::chrome();
|
||||
$chromeOptions = (new ChromeOptions)->addArguments(['headless', 'disable-gpu']);
|
||||
$capabilities->setCapability(ChromeOptions::CAPABILITY, $chromeOptions);
|
||||
self::$webDriver = RemoteWebDriver::create(
|
||||
self::$host . ':' . self::$port,
|
||||
$capabilities,
|
||||
|
|
Loading…
Add table
Reference in a new issue