首页 > 解决方案 > 使用 visibilityOfElementLocated() 函数时会话过期

问题描述

例子:

// Wait until popup doesn't appear on page
$driver->wait(70, 250)->until(WebDriverExpectedCondition::visibilityOfElementLocated(WebDriverBy::xpath('//span[@class="form-container-headline"][contains(text(),"late arrivals")]')));

有时元素在页面上没有活动的时间太长后出现在页面上,因此网站的会话过期,我们不得不面对错误

目前我的版本是:php-webdriver 1.11.1

有什么解决办法吗?

标签: facebook-php-webdriverphp-webdriver

解决方案


推荐阅读