Identification issue on nested child items
Posted: Wed Sep 22, 2021 1:47 pm
Dear folks,
I try to dynamically identify nested child elements and have issues finding a RXpath for the following structure of the application
What i want to skip is the first tag/div/tag and get only the tag/div/div items, and - here comes the tricky part - identified by their number because there are absolutely no attributes to make use of.
so I am searching for: How to identify the first, the second tag/div/div element?
does not find any element, because it searches for 2 divs in the first tag, which is not there.
also does not work, because it searches inside the first tag.
What I am looking after is something like the first occurrence of "tag/div/div" element.
Something like (tag/div/div)[1] (pseudocode)
Any ideas?
thanks!
I try to dynamically identify nested child elements and have issues finding a RXpath for the following structure of the application
Code: Select all
tag
--div
----tag
tag
--div
----div
tag
--div
----div
...
so I am searching for: How to identify the first, the second tag/div/div element?
Code: Select all
tag[1]/div/div
Code: Select all
tag/div[1]/div
What I am looking after is something like the first occurrence of "tag/div/div" element.
Something like (tag/div/div)[1] (pseudocode)
Any ideas?
thanks!