Forum Discussion

brownla's avatar
brownla
New Contributor
3 years ago

Web test: Checking for disclaimer

I have a web test for a site that keeps failing  because of a disclaimer that needs to be accepted on the page. 

  • It is a policy statement that pops up on the bottom and the user must click "Accept" to close it
  • The problem is, I have added that step to my test, but if the Acceptance has already been cached the disclaimer does not pop up in subsequent tests. So the test step fails since TestComplete cannot find the disclaimer on the page.

Is there a step I can add to check for the disclaimer, and if it is not there just bypass the accept step and move on?