selenium - issue accessing a text using xpath -


I have difficulty'm trying to find acceptance in the html and it is I, I tried:

  1. // td [* / text () = 'acceptance']
  2. // 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

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -