You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following 3 lines of code in 'yahoo_login' function in login.py gave an error when newer version of Selenium library is used. The suggested work around are also shown:
Original: self.driver.find_element_by_id("login-username").send_keys(self.username)
Change to: self.driver.find_element(By.ID,"login-username").send_keys(self.username)
Original: self.driver.find_element_by_xpath("//input[@id='login-signin']").click()
Change to: self.driver.find_element(By.XPATH,"//input[@id='login-signin']").click()
Original: self.driver.find_element_by_xpath("//button[@id='login-signin']").click()
Change to: self.driver.find_element(By.XPATH,"//button[@id='login-signin']").click()
The text was updated successfully, but these errors were encountered:
Describe the bug
The following 3 lines of code in 'yahoo_login' function in login.py gave an error when newer version of Selenium library is used. The suggested work around are also shown:
Original: self.driver.find_element_by_id("login-username").send_keys(self.username)
Change to: self.driver.find_element(By.ID,"login-username").send_keys(self.username)
Original: self.driver.find_element_by_xpath("//input[@id='login-signin']").click()
Change to: self.driver.find_element(By.XPATH,"//input[@id='login-signin']").click()
Original: self.driver.find_element_by_xpath("//button[@id='login-signin']").click()
Change to: self.driver.find_element(By.XPATH,"//button[@id='login-signin']").click()
The text was updated successfully, but these errors were encountered: