18 January 2026:


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

tinchie8tinchie8 Members
edited November -1 in Sahi - Open Source
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=

Comments

  • anyone got the same issue??
  • stringylow, any idea on this?
  • Try this:

    _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.
Sign In or Register to comment.