how to wait for page item to load

anasbinti

Junior Member
Joined
Feb 8, 2024
Messages
129
Reaction score
33
guys i'm building an automation with claude, i'm not sure how to tell claude to wait for a page element to load or for the page to fully load, how is it possible to know if a web page is fully loaded
 
which automation tool are you using?
in mordern web, pages are loading everytime, the better approach is to tell it that "do this after this (a specific element) loads or reloads, or loads for a first time", a tip, give it a time interval like wait for every 1 second, up to 3 seconds etc
and if you are using Playwright, Puppeteer, Selenium etc, use their own waiting or clicking features like page.get_by_role("button", name="Submit").click()
 
there isn’t really one reliable “page is fully loaded” check, especially on JS-heavy sites

if you’re using Playwright, tell Claude to wait for the actual state you need - the button becomes visible/enabled, the table appears, or the loading spinner disappears - then continue. playwright already auto-waits for most actions
 
Back
Top