[Python] Web Scraping with Python: Selenium TimeoutException when logging in to React-rendered...

Discussão em 'Python' iniciado por Stack, Junho 24, 2025.

  1. Stack

    Stack Membro Participativo

    I’m trying to automate downloading StoryWeaver PDFs by: 1. Navigating to the React homepage at https://storyweaver.org.in/en/ 2. Clicking Log in (which opens a React modal) 3. Filling out my email/password 4. Waiting for the post-login link (/en/library) to appear 5. Navigating to the level-1 story list and collecting the first 10 story links 6. Visiting each link, clicking Download → PDF, and saving it

    This works perfectly in a visible Chrome window, but as soon as I run it headlessly I always hit a TimeoutException waiting for the email field to appear:

    selenium.common.exceptions.TimeoutException: Message:
    Stacktrace:
    chromedriver …
    raise TimeoutException(message, screen, stacktrace)


    What I’ve tried

Compartilhe esta Página