Hi,
I have 4 Div's , Each Parent Div have a childindex starting from 0 through 3.
The first Div (childindex = 0) have 3 objects under them - One is Span, The rest two is a Label.
My Xpath - myDom/div[@class='x-box-inner']/div[@class='x-box-target']/div[@childindex=$StrFieldindex]
StrFieldindex = will be 0, 1,2,3 which i pass through code,
When i pass 0 - I want to get the count of objects under Div, then gets its corresponding Tagname. In this case for Childindex = 0, i have 3 objects.
I tried Xpath object.children.count, it always returns value 1. I am not sure what is wrong. COuld you please help.
Please see attached screenshot.
Read all the objects under Div in Vb.Net
Read all the objects under Div in Vb.Net
You do not have the required permissions to view the files attached to this post.
Re: Read all the objects under Div in Vb.Net
Hi,
It would be much easier to help you if you post Ranorex snapshot, instead of plain screenshot. Could you please post the snapshot?
It would be much easier to help you if you post Ranorex snapshot, instead of plain screenshot. Could you please post the snapshot?
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration