In our app that we are using, there are widgets on the page, lots and lots of widgets. There is a HTML
tag called widgetkey in it, with an 'id' value associated with it.
Here is the exact HTML
:
<div class="widget-wrapper form-group " widgetkey="xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx">
I am hoping that I don't have to get all the elements by that tag name
, and then loop through each widget element. The key value is the only thing that makes these widgets unique.
Also steering clear of Xpath
, because some of these widgets can not be displayed, causing the widget I am looking for to move location and causing the Xpath
to break. The only answer I saw used Xpath
. I would rather loop in that case.