selenium.wait_for_condition equivalent in Python bindings for WebDriver

后端 未结 3 1822
生来不讨喜
生来不讨喜 2021-02-06 06:33

I\'m moving some tests from Selenium to the WebDriver. My problem is that I can\'t find an equivalent for selenium.wait_for_condition. Do the Python bindings have this at the mo

3条回答
  •  萌比男神i
    2021-02-06 06:51

    The Java binding include a Wait class. This class repeatedly checks for a condition (with sleeps between) until a timeout is reached. If you can detect the completion of your Javascript using the normal API, you can take the same approach.

提交回复
热议问题