Forum Discussion

rzirpolo's avatar
rzirpolo
Occasional Contributor
6 years ago

Option to change input based on web content

I have setup a basic test for a website and login. I have since found out that post login the test user can be present with one of 3 different security questions.

 

How it TestComplete can I cater for this? Can I do this via the GUI commands or will I have to write underlying code.

 

3 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    Well, TestComplete interacts with the GUI so you will have to tell it to interact with the GUI, but you'll need to write some sort of code for you to detect what question is presented so that the proper answer can be applied.  I foresee using some sort of switch or case statement where the case is determined by the text content of the question control.