Forum Discussion

mithunpal2's avatar
mithunpal2
Contributor
6 years ago
Solved

Test Complete- Web testing - not recognizing yes button in warning page

in Web testing using test complete, it is not able to recognize yes button in the warning page?  how to solve this issue. thanks..
  • tristaanogre's avatar
    tristaanogre
    6 years ago

    If it happens at full speed, then it is not a recognition issue, it's a timing issue.  My guess is that the yes button does not appear immediately on screen... that, after performing some action, there is a delay while a page loads or something and then the Yes button appears.

    Keep in mind that TestComplete is attempting to execute your actions as quickly as possible.  So, unless you explicitly tell it to wait until something is available, it will attempt actions.  You could mitigate this easily with a "Delay" call to have the automation wait but generally hard coded delays are not best practice as they aren't "smart" code.

    Review the topics under https://support.smartbear.com/testcomplete/docs/app-objects/common-tasks/index.html and see if you can implement something to wait for your object properly.

    Note, also, the warning that you have about "took too much time".  This is an artifact of the "Extended Find" feature.  If you go to the additional info tab on that warning, it will give you suggestions of what you need to do to mitgate that warning.  This warning could also be contributing to your object recognition issue.