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

yahoo_login function does not work with newer version of Selenium #130

Open
connexamundi opened this issue Nov 24, 2022 · 0 comments
Open

Comments

@connexamundi
Copy link

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()

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

No branches or pull requests

1 participant