现在您需要根据 <span> 文本选择父标签'a',然后使用 driver.findElement(By.xpath("//a[. ... 只需将/ parent :: node()附加到子元素xpath即可。
確定! 回上一頁