function DrupalSelenium2Driver::setDesiredCapabilities

Same name and namespace in other branches
  1. 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\FunctionalJavascriptTests

Code

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.