Tag: webdriverjs

使用Selenium测试Angularjs应用程序

我正在测试角度js应用程序 链接Angular js App 当我点击Web应用程序上的UI工具包链接时,我收到以下错误 – at demoaj.Ajapp.main(Ajapp.java:16)引起:org.openqa.selenium.NoSuchElementException:无法找到元素:{“method”:“xpath”,“selector”:“html / body / div 1 / div 1 / aside / div / div / ul / li [2] / a“}命令持续时间或超时:51毫秒有关此错误的文档,请访问: http : //seleniumhq.org/exceptions/no_such_element.html 我是新手,我对这个AngularJS进行了一些研究 java代码 package demoaj; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; public class Ajapp { public static void main(String[] args) […]