Ask a Question

Object is not detected by TestComplete. Can it be made detectable?

ThomasCasserly
Frequent Contributor

Object is not detected by TestComplete. Can it be made detectable?

Hi everyone, 

I am trying to understand why I can't detect and therefore map a particular object in my tested web application. Screenshot is attached of the element being inspected. Anyone know why it's not being detected by TestComplete/ How the developers could change it to make it detectable?

 

Thanks

Tom.

7 REPLIES 7
vinniew
Staff

Hi @ThomasCasserly 

 

Is the content rendered within an Iframe? 

 

Chromium browsers can be tricky with iFrames however you can configure the browser to make the content within the frame accessible. 

 

See this doc outlining what needs to be configured in Edge or Chrome 

 

https://support.smartbear.com/testcomplete/docs/app-testing/web/common-tasks/frames.html

 

KR

 

Vinnie 

ThomasCasserly
Frequent Contributor

Good question and I have no idea, will have to ask the Devs and if it is the iFrame issue I will check out the link. 

Thanks for the suggestion👍👍

ThomasCasserly
Frequent Contributor

Just in relation to this point. The sibling element  

 

span > span.rf-layout-row > span.rf-message-red.rf-cell-label.rf-column-label-xl

 

can be detected by TestComplete. Would this be possible if there was an iFrame? I'm assuming both the siblings, including the undetectable one, would be affected by the iFrame. So if one is detectable and one not does that indicate that there is no  iFrame, and something else is the issue?

Hi Thomas 

 

Sorry for the delay. 


In order to access the iframe content we would need to run the browser in a certain way ie disabling web security etc

 

Thats all mentioned in the doc. 

 

However, if a sibling object is accessible it may not be a frame issue.  

 

I would recommend engaging with our support team

 

https://support.smartbear.com/testcomplete/message/

 

Feel free to message me privately the case number. 

 

If its possible for me to replicate on my machine it would be great 

 

KR

 

Vinnie

rraghvani
Trusted Contributor

I found a similar example (https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_circles) and it seems like TC is not able to recognise the "dots". 

rraghvani_0-1679575915334.png

Not sure if this is a limitation of TC?

ThomasCasserly
Frequent Contributor

Resolved it myself by editing the HTML of the loaded page. The undetected object was a <span>, which was empty,  but had classes assigned for CSS formatting. When I added a text character to it, this then made the control detectable and I mapped it. Removed the added text after mapping and control remained detectable to TestComplete.

Hi,

 

The undetected object was a <span>, which was empty

This is documented here: https://support.smartbear.com/testcomplete/docs/app-testing/web/general/object-identification/tree-m...

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
cancel
Showing results for 
Search instead for 
Did you mean: