Skip to content

Commit 4c5da8e

Browse files
committed
Correct the broken "testThatRightClickingCannotBeUsedInUnsupportedSelenium" test
1 parent cf68a2b commit 4c5da8e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tests/Custom/SeleniumSupportTest.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,15 @@ public function testThatRightClickingCannotBeUsedInUnsupportedSelenium(): void
2727
}
2828

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

32-
$this->createDriver()->rightClick('//');
37+
$driver = $this->createDriver();
38+
$driver->start();
39+
$driver->rightClick('//');
3340
}
3441
}

0 commit comments

Comments
 (0)