You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the man DOM, you can use JS to click on an element, and use waitForPageReload() to wait for the reload to complete
eg:
$page->evaluate($code)->waitForPageReload();
But if you're clicking on an element in an iframe that causes the iframe to reload, waitForPageReload() won't work because the main page doesn't reload.
waitForResponse() doesn't work either, because the next call could be broken due to the iframe reloading.
How can we evaluate() and then wait for the iframe to reload?
The text was updated successfully, but these errors were encountered:
I don't think iframes fire onload events or anything similar. You would have to inspect the iframe's content manually in a loop until the info you are looking for gets loaded there.
In the man DOM, you can use JS to click on an element, and use
waitForPageReload()
to wait for the reload to completeeg:
But if you're clicking on an element in an iframe that causes the iframe to reload,
waitForPageReload()
won't work because the main page doesn't reload.waitForResponse()
doesn't work either, because the next call could be broken due to the iframe reloading.How can we
evaluate()
and then wait for the iframe to reload?The text was updated successfully, but these errors were encountered: