function DrupalSelenium2Driver::setDesiredCapabilities
Same name and namespace in other branches
- 11.x core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php \Drupal\FunctionalJavascriptTests\DrupalSelenium2Driver::setDesiredCapabilities()
File
-
core/
tests/ Drupal/ FunctionalJavascriptTests/ DrupalSelenium2Driver.php, line 86
Class
- DrupalSelenium2Driver
- Provides a driver for Selenium testing.
Namespace
Drupal\FunctionalJavascriptTestsCode
public function setDesiredCapabilities(?array $desiredCapabilities = NULL) : void {
// Since Chrome 134, a click in a test can return before the new page starts
// loading, so the test still sees the old page. This restores the previous
// behavior.
// @see https://issues.chromium.org/issues/350540984
$desiredCapabilities['goog:chromeOptions']['args'][] = '--disable-features=DeferRendererTasksAfterInput';
parent::setDesiredCapabilities($desiredCapabilities);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.