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

update deprecated WebElement attributes for Selenium version >= 4.3.0 #187

Closed
wants to merge 1 commit into from
Closed

Conversation

al3xkras
Copy link

As per the changelogs of Selenium 4.3.0:

Selenium 4.3.0

  • Deprecated find_element_by_* and find_elements_by_* are now removed (#10712)
    and as per the merge the 16 replaced strings are as follows:

.find_element_by_class_name(
.find_element(By.CLASS_NAME,

.find_element_by_css_selector(
.find_element(By.CSS_SELECTOR,

.find_element_by_id(
.find_element(By.ID,

.find_element_by_link_text(
.find_element(By.LINK_TEXT,

.find_element_by_name(
.find_element(By.NAME,

.find_element_by_partial_link_text(
.find_element(By.PARTIAL_LINK_TEXT,

.find_element_by_tag_name(
.find_element(By.TAG_NAME,

.find_element_by_xpath(
.find_element(By.XPATH,

.find_elements_by_class_name(
.find_elements(By.CLASS_NAME,

.find_elements_by_css_selector(
.find_elements(By.CSS_SELECTOR,

.find_elements_by_id(
.find_elements(By.ID,

.find_elements_by_link_text(
.find_elements(By.LINK_TEXT,

.find_elements_by_name(
.find_elements(By.NAME,

.find_elements_by_partial_link_text(
.find_elements(By.PARTIAL_LINK_TEXT,

.find_elements_by_tag_name(
.find_elements(By.TAG_NAME,

.find_elements_by_xpath(
.find_elements(By.XPATH,

@al3xkras al3xkras closed this by deleting the head repository Oct 15, 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

1 participant