fmorel-isnard
11 years agoOccasional Contributor
Find web objects with attributes data-*
Hi everyone,
to find web objects in our application, we use attributes data-*.
I use something like this :
PropNames = Array("ObjectType","data-varname")
PropValues = Array("TextBox","ORDERMIN")
Set Object = Page.FindChild(PropNames, PropValues, 30, True)
Here is an example of how an element looks when using F12 in IE or FF:
<input class="float" type="text" size="16" data-varname="ORDERMIN"/>
This method works with FireFox ,Chrome and IE8. But with IE9 and later doesn't work.
If you can help me, i would like to know why with IE9 and later this method doesn't work.
I use TC 10.30
Thank.
to find web objects in our application, we use attributes data-*.
I use something like this :
PropNames = Array("ObjectType","data-varname")
PropValues = Array("TextBox","ORDERMIN")
Set Object = Page.FindChild(PropNames, PropValues, 30, True)
Here is an example of how an element looks when using F12 in IE or FF:
<input class="float" type="text" size="16" data-varname="ORDERMIN"/>
This method works with FireFox ,Chrome and IE8. But with IE9 and later doesn't work.
If you can help me, i would like to know why with IE9 and later this method doesn't work.
I use TC 10.30
Thank.