Skip to content

Commit

Permalink
Correct the broken "testThatRightClickingCannotBeUsedInUnsupportedSel…
Browse files Browse the repository at this point in the history
…enium" test
  • Loading branch information
aik099 committed Jan 14, 2025
1 parent cf68a2b commit 4c5da8e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/Custom/SeleniumSupportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,15 @@ public function testThatRightClickingCannotBeUsedInUnsupportedSelenium(): void
}

$this->expectException(DriverException::class);
$this->expectExceptionMessage('This driver requires Selenium version 3 or lower');
$this->expectExceptionMessage(<<<TEXT
Right-clicking via JsonWireProtocol is not possible on Selenium Server 3.x.
Please use the "mink/webdriver-classic-driver" Mink driver or switch to Selenium Server 2.x.
TEXT
);

$this->createDriver()->rightClick('//');
$driver = $this->createDriver();
$driver->start();
$driver->rightClick('//');
}
}

0 comments on commit 4c5da8e

Please sign in to comment.