Forum Discussion

QAConsultant's avatar
QAConsultant
Contributor
14 years ago

How to click a secondary button before trigger is set?



Hello,



I have a function where a Checkbox is clicked and launches a Yes/No pop-up.

The issue I have is that the Checkbox display=chked only if Yes is clicked on the pop-up.

Under normal playback, TC is waiting for the Checkbox to set to checked before clicking Yes button.



I've been looking at If Object but haven't figured this out yet.



Thanks,



Dan 

3 Replies

  • Hi Allen,



    I understand the theory of this at a high level.

    I don't know how to script to make it happen.

    Even though the scripting looks basic, I still don't understand it.

    Is there another way for a non-coder to make this happen?



    Thanks,

    Dan
  • Hi Allen,



    A way I was able to do this without any code was to:

    1. Set the Operation to Click - this does not look for an object state (from the Value column)

    2. Double click the item (in the Item column) and using the finder tool, simply remap the object that is being checked.



    So, by bypassing the keyword test 'looking' for the check box state of 'checked' it simply clicked and moved on to the Yes button on the pop-up.



    Thanks,



    Dan