我正在尝试仅为导航栏的子项找到xpath。我现在尝试的路径是//div[@class='navCol subMenus']
来自HTML的和平。
<div class="PrimaryNavigationContainer">
<div class="PrimaryNavigation">
<div class="Menu">
<div>
<a href="http://www.blah.co.uk/brands.aspx" class="unselectable"><span>Brands</span></a>
<div class="navCol">
<div>
<a class="NoLink unselectable"><span>Shop by Brand</span></a>
<div class="navCol subMenus">
<div>
<a href="http://www.blah.co.uk/blah/catlist_bd4.htm" class="unselectable"><span>blah</span></a>
我已经尝试了许多Xpath语法,但似乎没有任何工作只提出子类别。感谢您提供的任何帮助。