Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#136: Refactoring deprecated find_element_by_* and find_elements_by_* #141

Merged
merged 3 commits into from
Mar 10, 2023

Conversation

amirsharif
Copy link
Contributor

Methods are deprecated and will either generate an error or a deprecation warning (see: https://stackoverflow.com/questions/69875125/find-element-by-commands-are-deprecated-in-selenium).

All references should be replaced by the relevant By class method (see: https://selenium-python.readthedocs.io/locating-elements.html). This will resolve errors for users on newer versions of chromedriver.

FWIW – interestingly By is already in the import path of all relevant files and inconsistently used throughout. This PR should resolve those confusing inconsistencies as well (e.g. use of both find_element_by_xpath and find_element(By.XPATH in the same class).

@joeyism
Copy link
Owner

joeyism commented Feb 22, 2023

Can you resolve the conflicts? I'll merge it in after it's resolved

@joeyism joeyism merged commit bf1db6e into joeyism:master Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants