0
考慮下面的代碼:如何等待頁面重新加載硒?
$this->visit('/');
$text = $this->byCssSelector('.some-element')->text();
$this->byCssSelector('.some-link')->click();
# how do I wait for a new page to be loaded here?
$this->assertEquals($text, $this->byCssSelector('.some-element')->text());
https://www.google.com/search?q=selenium+php+wait - > https://github.com/facebook/php-webdriver/wiki/HowTo-Wait – ceejayoz