Ask a Question

TC does not recognise objects in Frames.

SOLVED
sureshpeesa
New Contributor

TC does not recognise objects in Frames.

Object spy could only recognise a Frame but not the objects in the frame.

 

I get the "false" when i run below code even though I could still see objects in DOM.

page = Sys.Browser("chrome").Page("*");
obj = page.Find("className","btn btn-main btn-lg");
Log.Message(obj.Exists)

1 ACCEPTED SOLUTION

Accepted Solutions
sureshpeesa
New Contributor

Re: TC does not recognise objects in Frames.

Smart bear advised me to try ""C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --disable-site-isolation-trials --user-data-dir=c:\chrome_test_user"  which did work, i think it was "Site isolation"  part which fixed it. Now i can access emelemts in Frames.

View solution in original post

4 REPLIES 4
Marsha_R
Community Hero

Re: TC does not recognise objects in Frames.

Please make sure that you have followed all the steps here:

https://support.smartbear.com/testcomplete/docs/app-testing/web/general/preparing-browsers/chrome.ht...

 

and then try your test again.


Marsha_R
[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
sureshpeesa
New Contributor

Re: TC does not recognise objects in Frames.

Hi,

 

Yes, i did try that but still the same result.

 

Please let me remind you, TC recognises all other elements in the webpage but just not the elements in the FRAME's.

Marsha_R
Community Hero

Re: TC does not recognise objects in Frames.

Yes, I read your post.  Missing objects is sometimes a symptom of not having done the setup properly.

 

Try recording a test that includes using those objects and see what TestComplete names them.   Give us a screen shot of that please.


Marsha_R
[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
sureshpeesa
New Contributor

Re: TC does not recognise objects in Frames.

Smart bear advised me to try ""C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --disable-site-isolation-trials --user-data-dir=c:\chrome_test_user"  which did work, i think it was "Site isolation"  part which fixed it. Now i can access emelemts in Frames.

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: