Forum Discussion

kpinnisetti's avatar
kpinnisetti
Contributor
11 years ago

Checkpoint for Highlighted textbox

Hi can any one give me sample script on how i can use checkpoint for the higlighted textbox? See the attached.  
  • Colin_McCrae's avatar
    11 years ago
    For checking graphical stuff like that, I tend to use the CSS properties of the objects.



    What you check will depend on the browser you're using. They're not 100% consistent on how they report things to TestComplete.



    Something like: <object>.ownerDocument.defaultView.getComputedStyle(<object>, "").backgroundColor



    Or it may just be sufficient to check the visibility of the highlight box around the textbox.



    It very much depends how the dev people have done the highlighting.