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
Thanks for the loop and label work.
There is something that it breaks.
I have used thenOpen in a lot of my work. When using this you can open a page and then it waits until it has loaded and then runs an included sub function.
However, with the addition of the new checkStep and then functions it no longer waits until the page has loaded, it opens the page and immediately executes the sub function.
eg casper.thenOpen('https://www.yahoo.com/', function () {this.capture('screenshot.png');})
The screenshot executes immediately without waiting for the page to load, thus resulting in an empty screenshot.
I know I can use something such as a waitFor function to wait for the page to be loaded but there are some things where thenOpen is much more appropriate and accurate.
Is there anyway to fix this so that thenOpen behaves as it should?
The text was updated successfully, but these errors were encountered:
Thanks for the loop and label work.
There is something that it breaks.
I have used
thenOpen
in a lot of my work. When using this you can open a page and then it waits until it has loaded and then runs an included sub function.However, with the addition of the new
checkStep
andthen
functions it no longer waits until the page has loaded, it opens the page and immediately executes the sub function.eg
casper.thenOpen('https://www.yahoo.com/', function () {this.capture('screenshot.png');})
The screenshot executes immediately without waiting for the page to load, thus resulting in an empty screenshot.
I know I can use something such as a
waitFor
function to wait for the page to be loaded but there are some things wherethenOpen
is much more appropriate and accurate.Is there anyway to fix this so that
thenOpen
behaves as it should?The text was updated successfully, but these errors were encountered: