Skip to content

[馃悰 Bug]: selenium.webdriver.support.ui.WebDriverWait vs selenium.webdriver.support.wait.WebDriverWait聽#17734

Description

@jkbzh

Description

Hi,

I'm using selenium's py classes. Debian Trixie (13,5), inside venv with latest pip and libraries.

These two classes seem very close and I can't tell the difference on which cases one should be used over the other. The changelog doesn't mention that one will be deprecated.

Moreover the doc pages give the same examples for the until_not method, both using selenium.webdriver.support.ui

https://www.selenium.dev/selenium/docs/api/py/selenium_webdriver_support/selenium.webdriver.support.ui.html
https://www.selenium.dev/selenium/docs/api/py/selenium_webdriver_support/selenium.webdriver.support.wait.html

I'm not sure what's going on here. It's either a typo on the example for selenium.webdriver.support.wait.until_not or something else.

Would be good if the doc said what's the difference between both classes and in which cases, which class is more appropriate.

Reproducible Code

pydoc selenium.webdriver.support.ui.WebDriverWait
pydoc selenium.webdriver.support.wait.WebDriverWait
pydoc selenium.webdriver.support.ui.WebDriverWait.until_not
pydoc selenium.webdriver.support.wait.WebDriverWait.until_not

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-pyPython Bindings

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions