You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may just be a quick inquiry but im trying to get headless working with steward simple test. Im sure im just missing something stupid
Scenarios:
Non steward tests using just phpunit works with headless ./vendor/phpunit/phpunit/phpunit --verbose -c ./TestAch.xml
Test Setup
public function setUp()
{
$options = new ChromeOptions();
$desired_capabilities = new DesiredCapabilities();
$desired_capabilities->setBrowserName('chrome');
$caps = DesiredCapabilities::chrome();
$options->addArguments(['--headless', '--window-size=1920,1080', '--start-maximized']);
$desired_capabilities->setCapability(ChromeOptions::CAPABILITY, $options);
$caps->setCapability(ChromeOptions::CAPABILITY, $options);
$capabilities = DesiredCapabilities::chrome();
$this->_webdriver = RemoteWebDriver::create(
'http://localhost:4444/wd/hub',
$caps
);
}
Steward tests with passed params (capabilities) doesnt open in headless (opens browser) ./vendor/bin/steward run staging chrome --capability "'chromeOptions':'args':['--headless', 'window-size=1024,768', '--no-sandbox']"
The text was updated successfully, but these errors were encountered:
Hi, you cannot change desired capabilities inside the test (neither in the setUp method), because the moment tests begins, the browser is already opened.
Hi all,
This may just be a quick inquiry but im trying to get headless working with steward simple test. Im sure im just missing something stupid
Scenarios:
./vendor/phpunit/phpunit/phpunit --verbose -c ./TestAch.xml
Test Setup
./vendor/bin/steward run staging chrome --capability "'chromeOptions':'args':['--headless', 'window-size=1024,768', '--no-sandbox']"
The text was updated successfully, but these errors were encountered: