cancel
Showing results for 
Search instead for 
Did you mean: 

How to use NativeWebObject method for the nested webtables

laxtc
Occasional Contributor

How to use NativeWebObject method for the nested webtables

I am a newbee to this product, please forgive me if I am asking some basic questions.



Here is my query. I wan to avoid Name Mapping all together and user NativeWebObject method.



Below is the Full Name from the Object Finder tool.



Sys.Process("iexplore", 2).Page("xxxx").Panel("root_signedIn").Table(0).Cell(1, 0).Table(0).Cell(1, 0).Table("mainTable").Cell(2, 1).Panel("divContacts").Table("oTable").Cell(0, 0).Panel("iGrid").Table("buddyTbl").Cell(4, 0).Table(0).Cell(1, 2).Panel("contacts_1").Table("groupTbl_1").Cell(2, 1).TextNode("bhi0_presence_3")



I want to use NativeWebObject like this


var user = Page().NativeWebObject.Find("Name", "TextNode*bhi0_presence_1*", "SPAN");



For some reason this is not working and also taking long time to execute this line. Why is that?.



thanks



Thanks
1 REPLY 1

RE: How to use NativeWebObject method for the nested webtables

Hi Laxmikant,


First of all, please note that the method will use the native Name property, not TestComplete's Name property in this case. Also, please note that the method analyzes all items on the web page, and therefore, it may take long to obtain an item. I recommend that you use TestComplete's FindChild method instead (see the "FindChild Method" help topic ( http://www.automatedqa.com/support/viewarticle.aspx?aid=5585 ) for more information).



Best regards,
Alexey

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Top Kudoed Authors