我的 HTML 包含以下代码。我如何在 Selenium 中处理它?
<div class="node-action" onclick="getNextpage('PageName','ID')">Account Info</div>我尝试了各种 XPath 方法,总是得到"Unable to locate an element with the xpath expression"。
WebElement NextPageFind= driver.findElement(By.xpath("//span[@onclick='javascript:getNextpage('PageName','ID');')]"));
NextPageFind.click();
慕雪6442864
ITMISS
慕侠2389804
人到中年有点甜
随时随地看视频慕课网APP
相关分类