• @luis @panzhigang 改成 selendroid 一样的报错,,,我将 xpath 写得清楚的不能再清楚了,还是识别不到。
    //div[@id='Wrap1']/div[@class='right']/p[@class='More']。。
    请问还有什么办法没?拜谢。

  • multiple: false
    > info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":13}
    > info: [debug] Pushing command to appium work queue: ["find",{"strategy":"xpath","selector":"//div[@id='Wrap1']/div[@class='right']/p[@class='More']","context":"","multiple":false}]
    > info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//div[@id='Wrap1']/div[@class='right']/p[@class='More']","context":"","multiple":false}}
    > info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
    > info: [debug] [BOOTSTRAP] [debug] Got command action: find
    > info: [debug] [BOOTSTRAP] [debug] Finding //div[@id='Wrap1']/div[@class='right']/p[@class='More'] using XPATH with the contextId:  multiple: false
    
  • 我之前用的是 4.3~~现在用的是 4.2.。。。

  • @luis 我试下啊

  • @panzhigang 好嘞

  • 好吧,非常感谢你的解答。

  • @weamylady AutomatorViewer 工具感觉还不错,就是想试试 Inspector,Device 的信息怎么写?非常感谢。

  • 额,这个怎么贴日志,就是打开 appium,然后点 Inspector,然后点 refresh,就报错,又没有运行什么代码,哪来的日志。

  • 我再试试看啊。。。非常感谢两位。

  • 确定一定以及肯定

  • @lihuazhang,这个路径下能找到 selendroid.com.ss.boc.direct.abc.activity.apk'

  • 大婶们,人呢,人都哪去了

  • @lihuazhang 这个是啥子意思,是要 install 一个 activity.apk 吗,谢谢。。。

  • 小弟不说完全看不懂,只能说基本上看不懂。

  • @lihuazhang ,上面是日志,请查看下。

  • A new session could not be created. (Original error: Command failed: can't find 'C:\Windows\Temp\selendroid.com.ss.boc.direct.abc.activity.apk' to install
    ) (WARNING: The server did not provide any stacktrace information)
    Command duration or timeout: 13.87 seconds
    Build info: version: '2.42.2', revision: '6a6995d31c7c56c340d6f45a76976d43506cd6cc', time: '2014-06-03 10:52:47'
    System info: host: 'wjj', ip: '172.27.35.1', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_67'
    Driver info: boc.framework.appium.test.AppiumDriverTestCase$AppiumSwipeableWebDriver
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204)
        at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156)
        at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599)
        at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:95)
        at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:240)
        at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:126)
        at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:153)
        at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:49)
        at boc.framework.appium.test.AppiumDriverTestCase$AppiumSwipeableWebDriver.<init>(AppiumDriverTestCase.java:211)
        at boc.framework.appium.test.AppiumDriverTestCase.StartDriver(AppiumDriverTestCase.java:96)
        at boc.framework.appium.test.AppiumDriverTestCase.setUp(AppiumDriverTestCase.java:52)
        at test.boc.smoke.bankCard.testBankCard.setUp(testBankCard.java:33)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
        at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
        at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
        at org.testng.internal.Invoker.invokeMethod(Invoker.java:653)
        at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
        at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
        at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
        at org.testng.TestRunner.privateRun(TestRunner.java:767)
        at org.testng.TestRunner.run(TestRunner.java:617)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
        at org.testng.SuiteRunner.run(SuiteRunner.java:240)
        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
        at org.testng.TestNG.run(TestNG.java:1057)
        at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
        at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
        at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)