我想做这样的事情:
$I->amOnPage('<URL>');
$I->executeJS('alert("yay!")'); // executeJS does not exist, I am looking for something like it
从我用谷歌搜索的内容来看,我可以用WebDriver做到这一点,但是使用PhpBrowser也可以吗?
不,使用 PhpBrowser 是不可能的。