-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed
Labels
A-needs-triagingA Selenium member will evaluate this soon!A Selenium member will evaluate this soon!
Description
🐛 Bug Report
In the python remote/webdriver.py code, find_element_by_id()
and many similar commands have this warning:
warnings.warn("find_element_by_* commands are deprecated. Please use find_element() instead")
find_element()
and find_elements()
have this contradicting documentation comment:
"""
Find an element given a By strategy and locator. Prefer the find_element_by_* methods when
possible.
"""
To Reproduce
Look at the code links above.
Expected behavior
Personally, I don't see why the find_element(s)_by_* commands have been deprecated. So I didn't expect to see that warning. If someone has a pointer to a conversation that lead to this decision, I'd like to see it.
At a minimum, I'd like the documentation and code be consistent.
Test script or set of commands reproducing this issue
NA
Environment
Metadata
Metadata
Assignees
Labels
A-needs-triagingA Selenium member will evaluate this soon!A Selenium member will evaluate this soon!