diff --git a/tests/Custom/SeleniumSupportTest.php b/tests/Custom/SeleniumSupportTest.php index deb86a94..f2cbb355 100644 --- a/tests/Custom/SeleniumSupportTest.php +++ b/tests/Custom/SeleniumSupportTest.php @@ -27,8 +27,15 @@ public function testThatRightClickingCannotBeUsedInUnsupportedSelenium(): void } $this->expectException(DriverException::class); - $this->expectExceptionMessage('This driver requires Selenium version 3 or lower'); + $this->expectExceptionMessage(<<createDriver()->rightClick('//'); + $driver = $this->createDriver(); + $driver->start(); + $driver->rightClick('//'); } }