selenium - issue accessing a text using xpath -
I have difficulty'm trying to find acceptance in the html and it is I, I tried:
-
// td [* / text () = 'acceptance']
-
// td [including (@class, 'sanctions ')]
Any help would be appreciated
& lt; td class = "ThemeGrayMainItem" name = "cmSubMenuID4" onmouseup = "cmItemMouseUp (this, 1, 'cmSubMenuID4', 0,32)" onmouseout = "cmItemMouseOut (this, 1, 'cmSubMenuID4', 0,32)" onmousedown = " cmItemMouseDown (this, 1, 'cmSubMenuID4', 0,32) "onmouseover =" cmItemMouseOverOpenSub (this, 1, 'cmSubMenuID4', 0,32) "& gt; Approval & amp; Nbsp; & Lt; / TD & gt;
You can use ()
: < / P>
// TD [included (. 'Approvals')]
Where .
indicates the text of the element.
If you have additional investigations, for example, can apply on the class name:
// td [@ class = 'ThemeGrayMainItem' and (. ' Acceptance ']]
Comments
Post a Comment