运行androidwebdriver时Selenium出错

运行androidwebdriver时Selenium出错,selenium,automation,Selenium,Automation,我在我的htc sensation android设备上运行Selenium示例代码。但是,当从ecclipse将其作为Android JUnit测试运行时,我得到了这个堆栈跟踪。无法理解它。我是硒的新手,所以任何帮助或建议都会对我帮助最大。 谢谢 org.openqa.selenium.NoSuchElementException:找不到名为q的元素 有关此错误的文档,请访问: 生成信息:版本:“未知”,版本:“未知”,时间:“未知” 系统信息:os.name:'Linux',os.arch:

我在我的htc sensation android设备上运行Selenium示例代码。但是,当从ecclipse将其作为Android JUnit测试运行时,我得到了这个堆栈跟踪。无法理解它。我是硒的新手,所以任何帮助或建议都会对我帮助最大。 谢谢

org.openqa.selenium.NoSuchElementException:找不到名为q的元素 有关此错误的文档,请访问: 生成信息:版本:“未知”,版本:“未知”,时间:“未知” 系统信息:os.name:'Linux',os.arch:'armv7l',os.version:'2.6.35.13-g2299e28',java.version:'0' 驱动程序信息:Driver.version:AndroidWebDriver 位于org.openqa.selenium.android.AndroidWebElement.lookupElement(AndroidWebElement.java:341) 位于org.openqa.selenium.android.AndroidWebElement.access$1(AndroidWebElement.java:330) 位于org.openqa.selenium.android.AndroidWebElement$FindByImpl.findElementByName(AndroidWebElement.java:295) 位于org.openqa.selenium.android.AndroidWebDriver$AndroidFindBy.findElementByName(AndroidWebDriver.java:457) 位于org.openqa.selenium.By$ByName.findElement(By.java:286) 位于org.openqa.selenium.android.AndroidWebDriver.findelelement(AndroidWebDriver.java:393) 位于simple.app.test.SimpleLogletest.testGoogleWorks(SimpleLogletest.java:32) 位于java.lang.reflect.Method.Invokenactive(本机方法) 位于android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:204) 位于android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:194) 位于android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:186) 位于android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) 位于android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) 位于android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:529) 位于android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1584)