I have link which is nested under tables ,frame and web element . I need to write a descriptive programming code to click the link .
Attached pic of object spy
Hierarchy is as followed , unable to attach image of object spy
Browser – page – Frame – webtable – webtable – Link - Webelement
now use Description object for the link, is the link name unique!!!
set objLink = Description.Create
objLink("micClass").value = "XXX"
objLink("name").value = "XXXYY"
You can try using
set objTableLink = B("").P(").WebTable("").ChildObjects(objLink)
'check the count
Now u can directly click the link if the count is 1.
U can also use ChildItemCount & Child Item iterating through the webtable.
Winds of Change
Even I'm trying to find solution for same kind of code..
i want to select a webElement which is inside the nested WebTable
I tried the following format code - Browser().page().frame().WebTable().WebTable().Web Table().WebTable().ChildObjects()
I'm getting general run error message... my nested WebTable is not being identified if i follow the above code
Could you please help me in solving this code..
Thank you in advance
In such cases using Xpath worked out for me
you can also try something like this..
set obj = objGlobal.object.getElementbyTagName("A")
if the above length is 1 then we have a unique object...
for i =0 to obj.length -1
if obj(i).type = "mention the type" and obj(i).innertext = "mention the innertext" then
Hope this helps...