Automating a user sign in to scrape data after logging in with Playwright

44 views Asked by At

I'm trying to scrape simplify for it to login into my account and keep sending me matches it finds to my slack/telegram bots later on. I'm finding a problem with entering the sign in after I input my email and password and I'm confused as I've tried everything I can think of

I tried using page.keyboard.down("Enter"). I also tried using page.click(button[type="submit"]) and it's not working so far.

p = sync_playwright().start()

browser = p.chromium.launch(headless=False)

page = browser.new_page()

page.goto("https://simplify.jobs/auth/login")

page.get_by_placeholder("Email Address").fill("[email protected]")
time.sleep(2)
page.get_by_placeholder("Password").fill(""myuniqpassword")
time.sleep(4)

page.click("button[type=submit]")
time.sleep(15)
page.screenshot(path="screenshot.png")
p.stop()
0

There are 0 answers