Forum Discussion

riponalwasim's avatar
riponalwasim
Occasional Contributor
10 years ago

How to execute JavaScript (JS) in TestComplete during Web App testing?

I have used Selenium WebDriver. In some cases it needs to use JS. For example for hidden field, it needs to use JS. I have done this in Selenium WebDriver using JavascriptExecutor interface.

 

Is it possible to use JS in TestComplete? If yes, how?

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Ripon,

     

    As far as I understand, you want to execute a client script stored on your tested we page, right? Please refer to the "Executing JavaScript on Web Pages" ( http://smartbear.com/viewarticle/55290/ ) help topic to learn how to do this in TestComplete.

     

    If this is not what you need, please describe your task in detail.