summaryrefslogtreecommitdiffstatshomepage
path: root/core/tests/Drupal/FunctionalJavascriptTests/BrowserWithJavascriptTest.php
diff options
context:
space:
mode:
authorcatch <6915-catch@users.noreply.drupalcode.org>2024-07-24 17:40:15 +0900
committercatch <6915-catch@users.noreply.drupalcode.org>2024-07-24 17:40:15 +0900
commit9eb4cb9d5b377f51e237ca2c3f71ab67d8fc6f7d (patch)
tree4a4d2488f55fcc206fc91f7858f2aaa048b761c4 /core/tests/Drupal/FunctionalJavascriptTests/BrowserWithJavascriptTest.php
parent24b7c3ffa3a759d7b6b19e847400023f2e1615d6 (diff)
downloaddrupal-9eb4cb9d5b377f51e237ca2c3f71ab67d8fc6f7d.tar.gz
drupal-9eb4cb9d5b377f51e237ca2c3f71ab67d8fc6f7d.zip
Issue #3421202 by alexpott, longwave, andypost, justafish: Enable W3C-compliant webdriver testing
Diffstat (limited to 'core/tests/Drupal/FunctionalJavascriptTests/BrowserWithJavascriptTest.php')
-rw-r--r--core/tests/Drupal/FunctionalJavascriptTests/BrowserWithJavascriptTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/tests/Drupal/FunctionalJavascriptTests/BrowserWithJavascriptTest.php b/core/tests/Drupal/FunctionalJavascriptTests/BrowserWithJavascriptTest.php
index 163a98e247be..a047196b0fd9 100644
--- a/core/tests/Drupal/FunctionalJavascriptTests/BrowserWithJavascriptTest.php
+++ b/core/tests/Drupal/FunctionalJavascriptTests/BrowserWithJavascriptTest.php
@@ -141,8 +141,8 @@ JS;
$session->visit($url);
// There are 2 alerts to accept before we can get the content of the page.
- $session->getDriver()->getWebdriverSession()->accept_alert();
- $session->getDriver()->getWebdriverSession()->accept_alert();
+ $session->getDriver()->getWebdriverSession()->alert()->accept();
+ $session->getDriver()->getWebdriverSession()->alert()->accept();
$out = $session->getPage()->getContent();