java - <li> tag Xpath location -
there many list elements in xml class name:
<li class="name"> <div>....</div> ...... </li>
set location "//*li[@class='name']" throws
javax.xml.transform.transformerexception: illegal tokens: 'li', '[', '@', 'class', '=', ''name'', ']'
how list elements via xpath location?
remove *
, i.e. instead of
//*li[@class='name']
you need use
//li[@class='name']
Comments
Post a Comment