18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
transition page
the webpage i'm checking has a transition page (a page that shows that you are redirected or confirms successful submission). since it's only shown for a couple of seconds. I can't seem to check if the correct messages are displayed.
here's my code to check whether the message i'm expecting is in the page:
_assertTrue(_containsText(top.document.body, "redirecting..."));
i tried to use _wait(5000); before the _assertTrue() statement but after the delay, the page proceeds to where it's suppose to be redirected.
how should i check the transition page??
Thanks,
=tinchie=
here's my code to check whether the message i'm expecting is in the page:
_assertTrue(_containsText(top.document.body, "redirecting..."));
i tried to use _wait(5000); before the _assertTrue() statement but after the delay, the page proceeds to where it's suppose to be redirected.
how should i check the transition page??
Thanks,
=tinchie=
Comments
_wait(5000, _assertTrue(_containsText(top.document.body, "redirecting...")));
That way Sahi will pause for until it finds "redirecting..." or 5 seconds expires, whichever comes first.