Selenium 如何定位附加屏幕截图的xpath。用Java语言会有帮助
有人能帮忙吗?xpath如下所示Selenium 如何定位附加屏幕截图的xpath。用Java语言会有帮助,selenium,Selenium,有人能帮忙吗?xpath如下所示 webdriver.findElement(xpath("//div[@id = 'decisionSupport-header']/div[1]/button[1]/span[1]")) //button[@type='button'][contains(.,'Details')] driver.findElement(By.xpath("//button[@type='button'][contains(.,'Details
webdriver.findElement(xpath("//div[@id = 'decisionSupport-header']/div[1]/button[1]/span[1]"))
//button[@type='button'][contains(.,'Details')]
driver.findElement(By.xpath("//button[@type='button'][contains(.,'Details')]")
java代码如下所示
//button[@type='button'][contains(.,'Details')]
driver.findElement(By.xpath("//button[@type='button'][contains(.,'Details')]")
添加html代码。。。