How to validate the page is closed

Ask general questions here.
Zhiqiu
Posts: 8
Joined: Mon Oct 19, 2015 4:18 pm

How to validate the page is closed

Post by Zhiqiu » Wed Dec 09, 2015 11:00 pm

Hi, we have a test that needs to validate the "submit" function.
After the application UI is loaded, when a user click the submit the button, if the submit is successful, the application UI will automatically be closed. How do we validate submit is successful in our Ranorex code?

Thanks,
Zhiqiu

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3930
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to validate the page is closed

Post by odklizec » Thu Dec 10, 2015 8:26 am

Hi,

Depending on your needs, you should use Validate.NotExists(), WaitForNotExists() or a combination of both methods. First validates the 'not exists' state of given repo element/xpath second one waits for not existence of given repo info element. You can find many examples of both methods at this forum. Hope this helps?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration