How to use NativeWebObject method for the nested webtables
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2010
08:29 AM
03-16-2010
08:29 AM
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
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2010
02:38 AM
03-17-2010
02:38 AM
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. ⬇️⬇️⬇️
