We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff9879c commit 7ae4451Copy full SHA for 7ae4451
module/VisualCeption.php
@@ -40,9 +40,14 @@ public function __construct ($config)
40
* Event hook before a test starts
41
*
42
* @param \Codeception\TestCase $test
43
+ * @throws \Exception
44
*/
45
public function _before (\Codeception\TestCase $test)
46
{
47
+ if ( !$this->hasModule("WebDriver")) {
48
+ throw new \Exception("VisualCeption uses the WebDriver. Please be sure that this module is activated.");
49
+ }
50
+
51
$this->webDriverModule = $this->getModule("WebDriver");
52
$this->webDriver = $this->webDriverModule->webDriver;
53
0 commit comments