joeyism / linkedin_scraper

A library that scrapes Linkedin for user data
GNU General Public License v3.0
2.11k stars 582 forks source link

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

Closed al3xkras closed 1 year ago

al3xkras commented 1 year ago

As per the changelogs of Selenium 4.3.0:

Selenium 4.3.0

.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,