Python中Java的FluentWait

2024-03-28 23:24:21 发布

您现在位置:Python中文网/ 问答频道 /正文

在java selenium webdriver包中,有一个^{}类:

Each FluentWait instance defines the maximum amount of time to wait for a condition, as well as the frequency with which to check the condition. Furthermore, the user may configure the wait to ignore specific types of exceptions whilst waiting, such as NoSuchElementExceptions when searching for an element on the page.

换句话说,它不仅仅是implicit and explicit wait,它为您提供了等待元素的更多控制。它可以非常方便,而且肯定有用例。

python selenium package中是否有类似的东西,或者我应该自己实现它?

(我查阅了文档中的Waits-没有)。


Tags: ofthetoinstanceforasseleniumjava