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

Issues with login? Here's the fix. #183

Open
MnLgt opened this issue Feb 20, 2023 · 1 comment
Open

Issues with login? Here's the fix. #183

MnLgt opened this issue Feb 20, 2023 · 1 comment

Comments

@MnLgt
Copy link

MnLgt commented Feb 20, 2023

Edit Pinterest.py as follows

Issue: creds not writing to root.
Fix: Rewrite Registry
At: Line 135

self.registry = Registry(cred_root, email)

change to

self.registry = Registry(cred_root, username)

Issue: Errors related to find_element_by. This is a deprecated method.
Fix: Update method for Selenium4.
At: Lines 216 and 217

driver.find_element_by_id( 

change to

driver.find_element(By.ID,

At: Line 219

driver.find_elements_by_xpath(

change to

driver.find_elements(By.XPATH,
@MnLgt MnLgt changed the title Update find_element_by_id If you're getting sign-in errors, here's the fix. Feb 20, 2023
@MnLgt MnLgt changed the title If you're getting sign-in errors, here's the fix. If you're getting login errors, here's the fix. Feb 20, 2023
@MnLgt MnLgt changed the title If you're getting login errors, here's the fix. Issues with login? Here's the fix. Feb 20, 2023
@spenceryonce
Copy link

In addition, on line 198, remove the install() function param and just leave the chrome_options like this:
driver = webdriver.Chrome(options=chrome_options )

this will fix the error with options having multiple params.

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

2 participants