Skip to content

Use Seleniumbase instead #6

@Fakesum

Description

@Fakesum

Using Seleniumbase with the uc=True argument is much more reliable at this. The latest version of undetected chromedriver has problems with google login.

It should look something like:

from seleniumbase import SB
class Google:
    def __init__(self) -> None:
        self.url    = 'https://accounts.google.com/ServiceLogin'
        self.time   = 10
    
    def login(self, email, password):
        with SB(uc=True) as driver:
                sleep(2)
                driver.type('identifier', f'{email}\n', By.NAME)
                sleep(2)
                driver.type( 'Passwd', f'{password}\n', By.NAME)

                self.code()

    def code(self):
    # [ ---------- paste your code here ---------- ]
        sleep(self.time)

seleniumbase also handles:

  • chromedriver installation
  • Element Detection

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions