facebook-php-webdriver - 使用 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
有什么解决办法吗?
解决方案
推荐阅读
- python - Tensorflow:点积中的“轴”参数
- c# - URL 重写多个 AND 条件重定向
- amazon-web-services - AWS SMS 消息已停止仅接收到美国手机,但适用于其他国家/地区
- sql - 在 SQL Server 中执行 Count 和 GroupBy 时如何保持 0 值条目?
- google-cloud-platform - 如何确保 GCP 服务帐号没有管理员权限?
- python - 你能让谷歌云任务队列重试速度超过每分钟 6 次吗?
- firebase - Firebase actionurl 域
- visual-studio-2019 - Visual Studio 2019 不建议使用语句,不建议添加重构选项
- javascript - 使用 Express JS app.get 和 Promise 在里面挂起
- javascript - 为什么在 React 项目的 CSS 中添加水平滚动条时 div 的大小会减小?