summaryrefslogtreecommitdiffstatshomepage
path: root/core/tests/Drupal/FunctionalJavascriptTests/BrowserWithJavascriptTest.php
diff options
context:
space:
mode:
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();