Forum Discussion

knudmt's avatar
knudmt
Regular Visitor
5 years ago

Interacting with HTML DOM objects via javascript or Ajax in TC 14

I'm new to testcomplete. We have an area in our web app that is extremely difficult for testcomplete recorder to understand. We have a hidden ul that become un-hidden on a button click. Each list ele...
  • AlexKaras's avatar
    5 years ago

    Hi,

     

    Please excuse my brevity...

     

    I'm new to testcomplete.

    TestComplete provides documentation of extreme quality that is definitely worth carefull reading for details. This is a significant difference from a lot of free tools and libraries, please consider this.

     

    I just executed some ajax [...]

    Your code sample is not an Ajax call but a regular call via jQuery (most probably).

     

    I would like to execute something similar.

    TestComplete supports execution of the custom script code within web page. See https://support.smartbear.com/testcomplete/docs/app-testing/web/common-tasks/javascript.html for more details and code samples.

     

    > [...] to set the inputs to 'checked'.

    You may either adopt your jQuery code to TestComplete as described in the referenced help topic, or use TestComplete's .FindAllChildren() method to find all required web elements and iterate through them.