We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More

Forum Discussion

whuang's avatar
whuang
Regular Contributor
5 years ago
Solved

Is TC able to manipulate webpage by using browser developer tool?

Hi there,

I have a test that needs to manipulate webpages, just wondering if anyone know whether TC is able to manipulate webpage by using browser developer tool? I tried to use TC to spy the objects in chrome developer tool, but it didn't allow me to.

 

Thanks in advance

  • Hi,

     

    I think that such activities can be done by either modifying page markup or/and injecting additional page script code. Read this article and consider whether it can help: https://support.smartbear.com/testcomplete/articles/embedding-scripts-into-web-pages/

     

  • Never mind, I sorted it out, should use contentDocument instead

15 Replies

  • tphillips's avatar
    tphillips
    Frequent Contributor

    No TestComplete is not able to interact with the developer console.

     

    What are you trying to do? We might be able to help you find a way without the developer console.

    • whuang's avatar
      whuang
      Regular Contributor

      I would like to perform some suspicious activities on my test page and see if they are handled properly. For instance, making a required field to optional, or  hacking a disabled button to enabled by manipulating through the developer console, things like that.

      • AlexKaras's avatar
        AlexKaras
        Community Hero

        Hi,

         

        I think that such activities can be done by either modifying page markup or/and injecting additional page script code. Read this article and consider whether it can help: https://support.smartbear.com/testcomplete/articles/embedding-scripts-into-web-pages/