darmstrong
15 years agoOccasional Contributor
clicking on web elements with no ID
My AUT is a web app that has dynamically created pages. Therefore, with the exception of the static widgets that are always present, there's no way to assign static IDs to the elements on the page. I'm using the DOM tree model, and it's working great for those static widgets, but for dynamically created elements, I'm getting
Type Message Time Link
There was an attempt to perform an action at point (59, 8), which is out of the window bounds. 14:36:14
The line of the script being executed was recorded like this:
all.Item(1038).Click(59, 8);
I'm wondering if the problem is that the DOM traversal isn't deterministic, and Item(1038) isn't always the same on subsequent loadings. Is there a way for me to identify the element I want to select using xpath or this HTML?
<div class="hyperlink report-link list-panel-row">My Link Text</div>
Thanks,
Davina
Type Message Time Link
There was an attempt to perform an action at point (59, 8), which is out of the window bounds. 14:36:14
The line of the script being executed was recorded like this:
all.Item(1038).Click(59, 8);
I'm wondering if the problem is that the DOM traversal isn't deterministic, and Item(1038) isn't always the same on subsequent loadings. Is there a way for me to identify the element I want to select using xpath or this HTML?
<div class="hyperlink report-link list-panel-row">My Link Text</div>
Thanks,
Davina