Forum Discussion

pranavswaroop_g's avatar
pranavswaroop_g
Contributor
11 years ago

Need to capture object action status in testcomplete

Hi,

Is there a way to capture that action performed on a object is successful or failed.
------------------------------------------
Ex:

in a test a object to be clicked.
I want to capture that object is clicked on successfully or Failed due to unavailability of object. So that I can perform the action once again or login a message.
-----------------------------------------

3 Replies

  • murugans1011's avatar
    murugans1011
    Regular Contributor
    <p>if Object.Exist then



          Object.Click



    Else

          

        'do something

        Log.Error "Object Not available



    End if </P>

  • Hi Murugan,

    Thanks for the Reply. This is the logic currently we are using i.e fist checking the object existence & Clicking on it. My question is Even the object exists & unable to click that object successfully due to other reason.. (Normally we get in the TC logs whether it is clicked successfully or not) . Can I capture that info..??
  • murugans1011's avatar
    murugans1011
    Regular Contributor
    is that object is visible in onscreen? wat error do u get when u perform click operation on the object?