Ask a Question

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

SOLVED
whuang
Regular Contributor

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

15 REPLIES 15
AlexKaras
Champion Level 3

Hi,

 

Is the browser you are using for testing still supported by TestComplete? Maybe a patch from https://support.smartbear.com/testcomplete/downloads/ is needed?

 

 https://support.smartbear.com/testcomplete/articles/embedding-scripts-into-web-pages/, but this page seems not available anymore

@sonya_m : Sonya, could you please ask documentation team where this really useful and helpful article was moved to?

 

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
sonya_m
SmartBear Alumni (Retired)

Hi everyone! I asked around, the article section is under review, so it is hidden temporarily.

I got the article you were looking for though @whuang @AlexKaras @Marsha_R 

 

Embedding Test Scripts Into Web Pages - please find it attached.

 

 

 

 


Sonya Mihaljova
Community and Education Specialist

Thank you a lot, Sonya!

 

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
whuang
Regular Contributor

Thank you @AlexKaras @sonya_m I am updating the TC and Chrome right now, will see if that can fix the issue.

whuang
Regular Contributor

I think I found what cause the issue. I noticed that Chrome doesn't have Application property, but IE does, so I tried and it worked on IE but not Chrome. Is there anyway I can embed javascript on chrome? I am pretty sure it was working on Chrome before.

a.jpg

whuang
Regular Contributor

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

cancel
Showing results for 
Search instead for 
Did you mean: