等待新页面加载Selenium Python
在以下网站上:
url: https://www.italreno.it/it/it/it/it /destinazioni-orari/orari-treni
更新搜索结果时(选择下拉菜单的另一个元素,因此搜索结果)我需要等待页面加载,但不能完全使用explicitWait
,因为它不会等待元素出现,因为它检测到以前的结果中相同的元素。 似乎与睡眠()
一起使用,但这不是很有效,因为加载时间取决于结果数字。
有什么建议吗?
From the following website:
URL: https://www.italotreno.it/it/destinazioni-orari/orari-treni
when updating search results (selecting another element of the drop down menu therefore searching for results) I need to wait for the page to load, but can't quite use ExplicitWait
as it won't wait for elements to appear because it detects the same elements from the previous results.
Seems to work with sleep()
but it's not very efficient, as the loading time depends on the results numerosity.
Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论