Search code examples
javascriptcodeception

Can I execute Javascript mit PhpBrowser in Acceptance Tests in Codeception?


I want to do something like this:

$I->amOnPage('<URL>');
$I->executeJS('alert("yay!")'); // executeJS does not exist, I am looking for something like it

From what I googled, I can do it with WebDriver, but is it also possible with PhpBrowser?


Solution

  • No, it is impossible with PhpBrowser.