XPath for accessing an element thru CSS style
Posted: Thu May 26, 2016 1:15 pm
Hi,
I'm trying to access the following element thru style tag:
<div tabindex="-1" class="ui-dialog ui-widget ui-widget-content ui-corner-all ui-resizable" role="dialog" aria-labelledby="ui-id-14" style="outline: 0px; left: 806.5px; top: 264.5px; width: 300px; height: auto; display: block; position: absolute; z-index: 1027;">
but if I try with a Xpath like:
/dom[@domain...]//div[@style~'display: block']
to just select the visible element of many similar ones Ranorex Spy can't identify it.
How should I be writing the Xpath to identify such element?
TIA
I'm trying to access the following element thru style tag:
<div tabindex="-1" class="ui-dialog ui-widget ui-widget-content ui-corner-all ui-resizable" role="dialog" aria-labelledby="ui-id-14" style="outline: 0px; left: 806.5px; top: 264.5px; width: 300px; height: auto; display: block; position: absolute; z-index: 1027;">
but if I try with a Xpath like:
/dom[@domain...]//div[@style~'display: block']
to just select the visible element of many similar ones Ranorex Spy can't identify it.
How should I be writing the Xpath to identify such element?
TIA