• #20 楼 @lihuazhang 我 build 文件夹里面没有 selendroid.apk 是不是编译没成功呀?可是我 reset.bat 的时候也没报错哇。奇怪
    error: Failed to start an Appium session, err was: Error: ENOENT, stat 'D:\sorft
    ware\appium-master\build\selendroid\selendroid.apk'
    info: Error: ENOENT, stat 'D:\sorftware\appium-master\build\selendroid\selendroi
    d.apk'

  • 找到了 grunt 在这个目录下 appium-master\node_modules.bin 哈哈 多谢@lihuazhang

  • #17 楼 @lihuazhang 我没装 grunt
    D:\sorftware\appium-master>grunt setConfigVer:selendroid
    'grunt' 不是内部或外部命令,也不是可运行的程序
    或批处理文件。
    有类似的命令么 这句话是什么意思呀

  • #15 楼 @lihuazhang 这句命令 在哪里运行呀 我是 windows 环境 没有找到 setConfigVer:selendroid 文件呀

  • #12 楼 @lihuazhang 要版本号 +1 么 然后从新 reset 么 还是要改其他的地方

  • #12 楼 @lihuazhang 里面就一个话 {"android":{"version":"0.16.0"}}

  • @lihuazhang 恩恩是的 我已经编译好了 appium.js 但是执行的时候提示:
    info: Welcome to Appium v0.16.0
    info: Appium REST http interface listener started on 0.0.0.0:4723
    info - socket.io started
    debug: Appium request initiated at /wd/hub/session
    debug: Request received with params: {"desiredCapabilities":{"app":"C:\Users\c
    huyaoyao\Downloads\AppiumForWindows\Appium\apk\3.2.1.apk","browerName":"","
    platfrom":"windows","version":"4.1","device":"selendroid","app_activity":".ui.In
    dexActivity","app-wait-activity":".ui.ColdStartActivity","deviceScreenshot":"tru
    e","app_package":"com.baidu.news"}}
    error: Trying to run a session for device 'selendroid' but that device hasn't be
    en configured. Run config
    info: Got configuration error, not starting session
    info: Cleaning up appium session
    error: Failed to start an Appium session, err was: Error: Device selendroid not
    configured yet
    info: Error: Device selendroid not configured yet
    at Appium.configure (D:\sorftware\appium-master\lib\appium.js:181:15)
    at Appium.start (D:\sorftware\appium-master\lib\appium.js:82:10)
    at exports.createSession (D:\sorftware\appium-master\lib\server\controller.j
    s:151:16)
    at callbacks (D:\sorftware\appium-master\node_modules\express\lib\router\ind
    ex.js:164:37)
    at param (D:\sorftware\appium-master\node_modules\express\lib\router\index.j
    s:138:11)
    at pass (D:\sorftware\appium-master\node_modules\express\lib\router\index.js
    :145:5)
    at nextRoute (D:\sorftware\appium-master\node_modules\express\lib\router\ind
    ex.js💯7)
    at callbacks (D:\sorftware\appium-master\node_modules\express\lib\router\ind
    ex.js:167:11)
    at D:\sorftware\appium-master\lib\server\controller.js:34:7
    at callbacks (D:\sorftware\appium-master\node_modules\express\lib\router\ind
    ex.js:164:37)
    info: Responding to client with error: {"status":33,"value":{"message":"A new se
    ssion could not be created. (Original error: Device selendroid not configured ye
    t)","origValue":"Device selendroid not configured yet"},"sessionId":null}
    POST /wd/hub/session 500 20ms - 222b

  • 请问如何更新 appium 中 selendroid 版本呢,我在文件夹里面没有发现 selendroid 的 jar 包 请问大家有知道的么@seveniruby

  • #3 楼 @benlooking 如何打出 pagesource 是 native-app 哦

  • #2 楼 @lihuazhang @driver.window_handles 输出的是 native-app

  • 期待

  • #3 楼 @benlooking native app,Selendroid 不会不识别吧

  • #1 楼 @benlooking Selendroid 测试 Webview 发现能通过 xpath 定位元素么 为什么我的一直是失败的呢?改成 Android 就没有问题,同样的 xpath

  • xpath 使用误区,请进 at 2014年02月27日

    #26 楼 @seveniruby 搞不懂,求大神指点 用了最新的版本,输入更多的 log,大神有没有办法
    debug: Proxied response received with status 200: {"value":{"ELEMENT":"ec10568b-
    f524-2c4f-58de-964514253a27"},"status":0,"sessionId":"aace43be-4eae-42ad-a0af-ba
    ca34d24b70"}
    POST /wd/hub/session/aace43be-4eae-42ad-a0af-baca34d24b70/element 200 42ms - 144
    b
    info: [SELENDROID] find element command using 'class name' with selector 'androi
    d.widget.HorizontalScrollView'.
    debug: Appium request initiated at /wd/hub/session/aace43be-4eae-42ad-a0af-baca3
    4d24b70/element
    debug: Request received with params: {"using":"xpath","value":"//HorizontalScrol
    lView"}
    debug: Proxying command to localhost:8080
    info: Making http request with opts: {"url":"http://localhost:8080/wd/hub/sessio
    n/aace43be-4eae-42ad-a0af-baca34d24b70/element","method":"POST","json":{"using":
    "xpath","value":"//HorizontalScrollView"}}
    info: [SELENDROID] find element command using 'xpath' with selector '//Horizonta
    lScrollView'.
    info: [SELENDROID] Error occurred while handling request.
    info: [SELENDROID ERR] PullToRefreshListView$InternalListView
    info: [SELENDROID ERR] at org.apache.harmony.xml.dom.ElementImpl.(Element
    Impl.java:68)
    info: [SELENDROID ERR] at org.apache.harmony.xml.dom.DocumentImpl.createElement
    (DocumentImpl.java:332)
    info: [SELENDROID ERR] at org.apache.harmony.xml.dom.DocumentImpl.createElement
    (DocumentImpl.java:49)
    info: [SELENDROID ERR] at io.selendroid.server.model.internal.JsonXmlUtil.build
    XmlNode(JsonXmlUtil.java:65)
    info: [SELENDROID ERR] at io.selendroid.server.model.internal.JsonXmlUtil.build
    XmlNode(JsonXmlUtil.java:79)
    info: [SELENDROID ERR] at io.selendroid.server.model.internal.JsonXmlUtil.build
    XmlNode(JsonXmlUtil.java:79)
    info: [SELENDROID ERR] at io.selendroid.server.model.internal.JsonXmlUtil.build
    XmlNode(JsonXmlUtil.java:79)
    info: [SELENDROID ERR] at io.selendroid.server.model.internal.JsonXmlUtil.build
    XmlNode(JsonXmlUtil.java:79)
    info: [SELENDROID ERR] at io.selendroid.server.model.internal.JsonXmlUtil.build
    XmlNode(JsonXmlUtil.java:79)
    info: [SELENDROID ERR] at io.selendroid.server.model.internal.JsonXmlUtil.build
    XmlNode(JsonXmlUtil.java:79)
    info: [SELENDROID ERR] at io.selendroid.server.model.internal.JsonXmlUtil.build
    XmlNode(JsonXmlUtil.java:79)
    info: [SELENDROID ERR] at io.selendroid.server.model.internal.JsonXmlUtil.build
    XmlNode(JsonXmlUtil.java:79)
    info: [SELENDROID ERR] at io.selendroid.server.model.internal.JsonXmlUtil.build
    XmlNode(JsonXmlUtil.java:79)
    info: [SELENDROID ERR] at io.selendroid.server.model.internal.JsonXmlUtil.build
    XmlNode(JsonXmlUtil.java:79)
    info: [SELENDROID ERR] at io.selendroid.server.model.internal.JsonXmlUtil.build
    XmlNode(JsonXmlUtil.java:79)
    info: [SELENDROID ERR] at io.selendroid.server.model.internal.JsonXmlUtil.build
    XmlNode(JsonXmlUtil.java:79)
    info: [SELENDROID ERR] at io.selendroid.server.model.internal.JsonXmlUtil.build
    XmlNode(JsonXmlUtil.java:79)
    info: [SELENDROID ERR] at io.selendroid.server.model.internal.JsonXmlUtil.build
    XmlNode(JsonXmlUtil.java:79)
    info: [SELENDROID ERR] at io.selendroid.server.model.internal.JsonXmlUtil.build
    XmlDoc(JsonXmlUtil.java:43)
    info: [SELENDROID ERR] at io.selendroid.server.model.internal.JsonXmlUtil.toXml
    (JsonXmlUtil.java:27)
    info: [SELENDROID ERR] at io.selendroid.server.model.internal.AbstractNativeEle
    mentContext.findElementsByXPath(AbstractNativeElementContext.java:227)
    info: [SELENDROID ERR] at io.selendroid.server.model.internal.AbstractNativeEle
    mentContext.findElementByXPath(AbstractNativeElementContext.java:211)
    debug: Proxied response received with status 500: undefined
    POST /wd/hub/session/aace43be-4eae-42ad-a0af-baca34d24b70/element 500 501ms
    info: [SELENDROID ERR] at io.selendroid.server.model.internal.AbstractNativeEle
    mentContext.findElement(AbstractNativeElementContext.java:203)
    info: [SELENDROID ERR] at io.selendroid.server.model.By$ByXPath.findElement(By.
    java:231)
    info: [SELENDROID ERR] at io.selendroid.server.model.DefaultSelendroidDriver.fi
    ndElement(DefaultSelendroidDriver.java:111)
    info: [SELENDROID ERR] at io.selendroid.server.handler.FindElement.handle(FindE
    lement.java:46)
    info: [SELENDROID ERR] at io.selendroid.server.AndroidServlet.handleRequest(And
    roidServlet.java:236)
    info: [SELENDROID ERR] at io.selendroid.server.BaseServlet.handleHttpRequest(Ba
    seServlet.java:70)
    info: [SELENDROID ERR] at org.webbitserver.netty.NettyHttpControl.nextHandler(N
    ettyHttpControl.java:78)
    info: [SELENDROID ERR] at org.webbitserver.netty.NettyHttpControl.nextHandler(N
    ettyHttpControl.java:62)
    info: [SELENDROID ERR] at io.selendroid.server.inspector.InspectorServlet.handl
    eHttpRequest(InspectorServlet.java:78)
    info: [SELENDROID ERR] at org.webbitserver.netty.NettyHttpControl.nextHandler(N
    ettyHttpControl.java:78)
    info: [SELENDROID ERR] at org.webbitserver.netty.NettyHttpControl.nextHandler(N
    ettyHttpControl.java:62)
    info: [SELENDROID ERR] at org.webbitserver.handler.PathMatchHandler.handleHttpR
    equest(PathMatchHandler.java:33)
    info: [SELENDROID ERR] at org.webbitserver.netty.NettyHttpControl.nextHandler(N
    ettyHttpControl.java:78)
    info: [SELENDROID ERR] at org.webbitserver.netty.NettyHttpControl.nextHandler(N
    ettyHttpControl.java:62)
    info: [SELENDROID ERR] at org.webbitserver.handler.DateHeaderHandler.handleHttp
    Request(DateHeaderHandler.java:21)
    info: [SELENDROID ERR] at org.webbitserver.netty.NettyHttpControl.nextHandler(N
    ettyHttpControl.java:78)
    info: [SELENDROID ERR] at org.webbitserver.netty.NettyHttpControl.nextHandler(N
    ettyHttpControl.java:62)
    info: [SELENDROID ERR] at org.webbitserver.handler.ServerHeaderHandler.handleHt
    tpRequest(ServerHeaderHandler.java:25)
    info: [SELENDROID ERR] at org.webbitserver.netty.NettyHttpControl.nextHandler(N
    ettyHttpControl.java:78)
    info: [SELENDROID ERR] at org.webbitserver.netty.NettyHttpControl.nextHandler(N
    ettyHttpControl.java:67)
    info: [SELENDROID ERR] at org.webbitserver.netty.NettyHttpChannelHandler$2.run(
    NettyHttpChannelHandler.java:72)
    info: [SELENDROID ERR] at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr
    eadPoolExecutor.java:1088)
    info: [SELENDROID ERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th
    readPoolExecutor.java:581)
    info: [SELENDROID ERR] at java.lang.Thread.run(Thread.java:1019)
    info: [SELENDROID] replyWithServerError 500
    info: [SELENDROID] System.currentTimeMillis() = 1393470145
    info: [SELENDROID] System.currentTimeMillis() = 1393470145
    info: [SELENDROID] System.currentTimeMillis() = 1393470145
    info: [SELENDROID] System.currentTimeMillis() = 1393470145
    info: Didn't get a new command in 60 secs, shutting down...
    info: Shutting down appium session...
    info: Stopping selendroid server
    info: Making http request with opts: {"url":"http://localhost:8080/wd/hub/sessio
    n/aace43be-4eae-42ad-a0af-baca34d24b70","method":"DELETE"}
    info: [SELENDROID] delete session command
    info: [SELENDROID] ---------Session STOP ---------------
    debug: executing: "C:\Users\chuyaoyao\android-sdks\platform-tools\adb.exe" -s 30
    4D09FE7029803F shell "am force-stop com.baidu.news"
    info: Stopping logcat capture
    debug: Logcat terminated with code null, signal SIGTERM
    info: Cleaning up appium session
    info: We shut down because no new commands came in
    info: [SELENDROID ERR] Connection timed out
    info: [SELENDROID ERR] at org.apache.harmony.luni.platform.OSNetworkSystem.read
    (Native Method)
    info: [SELENDROID ERR] at dalvik.system.BlockGuard$WrappedNetworkSystem.read(Bl
    ockGuard.java:273)
    info: [SELENDROID ERR] at org.apache.harmony.luni.net.PlainSocketImpl.read(Plai
    nSocketImpl.java:458)
    info: [SELENDROID ERR] at org.apache.harmony.luni.net.SocketInputStream.read(So
    cketInputStream.java:85)
    info: [SELENDROID ERR] at java.io.DataInputStream.read(DataInputStream.java:69)

    info: [SELENDROID ERR] at gq.a(Unknown Source)
    info: [SELENDROID ERR] at gv.run(Unknown Source)
    info: [SELENDROID ERR] Connection timed out
    info: [SELENDROID ERR] no network is available!
    info: [SELENDROID ERR] at com.tencent.news.push.PushService$HeartThread.initSoc
    ket(PushService.java:711)
    info: [SELENDROID ERR] at com.tencent.news.push.PushService$HeartThread.run(Pus
    hService.java:955)
    info: [SELENDROID ERR] at org.apache.harmony.luni.platform.OSNetworkSystem.read
    (Native Method)
    info: [SELENDROID ERR] at dalvik.system.BlockGuard$WrappedNetworkSystem.read(Bl
    ockGuard.java:273)
    info: [SELENDROID ERR] at org.apache.harmony.nio.internal.SocketChannelImpl.rea
    dImpl(SocketChannelImpl.java:382)
    info: [SELENDROID ERR] at org.apache.harmony.nio.internal.SocketChannelImpl.rea
    d(SocketChannelImpl.java:304)
    info: [SELENDROID ERR] at com.netease.pris.push.a.c.a(Unknown Source)
    info: [SELENDROID ERR] at com.netease.pris.push.a.c.e(Unknown Source)
    info: [SELENDROID ERR] at com.netease.pris.push.a.c.d(Unknown Source)
    info: [SELENDROID ERR] at com.netease.pris.push.a.c.run(Unknown Source)
    info: [SELENDROID ERR] at java.lang.Thread.run(Thread.java:1019)
    info: [SELENDROID] at org.apache.harmony.luni.platform.OSNetworkSystem.read
    Direct(Native Method)
    info: [SELENDROID] at dalvik.system.BlockGuard$WrappedNetworkSystem.readDir
    ect(BlockGuard.java:278)
    info: [SELENDROID ERR] Connection timed out
    info: [SELENDROID ERR] at org.apache.harmony.luni.platform.OSNetworkSystem.read
    (Native Method)
    info: [SELENDROID ERR] at dalvik.system.BlockGuard$WrappedNetworkSystem.read(Bl
    ockGuard.java:273)
    info: [SELENDROID ERR] at org.apache.harmony.luni.net.PlainSocketImpl.read(Plai
    nSocketImpl.java:458)
    info: [SELENDROID ERR] at org.apache.harmony.luni.net.SocketInputStream.read(So
    cketInputStream.java:85)
    info: [SELENDROID ERR] at java.io.InputStreamReader.read(InputStreamReader.java
    :255)
    info: [SELENDROID ERR] at java.io.BufferedReader.read(BufferedReader.java:311)
    info: [SELENDROID ERR] at org.jivesoftware.smack.b.read(AliveBufferedReader.jav
    a:21)
    info: [SELENDROID ERR] at org.jivesoftware.smack.f.b.read(ObservableReader.java
    :42)
    info: [SELENDROID ERR] at org.kxml2.io.KXmlParser.peek(KXmlParser.java:925)
    info: [SELENDROID ERR] at org.kxml2.io.KXmlParser.peekType(KXmlParser.java:589)

    info: [SELENDROID ERR] at org.kxml2.io.KXmlParser.nextImpl(KXmlParser.java:333)

    info: [SELENDROID ERR] at org.kxml2.io.KXmlParser.next(KXmlParser.java:1378)
    info: [SELENDROID ERR] at org.jivesoftware.smack.l.a(PacketReader.java:45)
    info: [SELENDROID ERR] at org.jivesoftware.smack.l$1.run(PacketReader.java:72)
    info: [SELENDROID ERR] Connection timed out
    info: [SELENDROID ERR] at org.apache.harmony.luni.platform.OSNetworkSystem.read
    (Native Method)
    info: [SELENDROID ERR] at dalvik.system.BlockGuard$WrappedNetworkSystem.read(Bl
    ockGuard.java:273)
    info: [SELENDROID ERR] at org.apache.harmony.luni.net.PlainSocketImpl.read(Plai
    nSocketImpl.java:458)
    info: [SELENDROID ERR] at org.apache.harmony.luni.net.SocketInputStream.read(So
    cketInputStream.java:85)
    info: [SELENDROID ERR] at java.io.InputStreamReader.read(InputStreamReader.java
    :255)
    info: [SELENDROID ERR] at java.io.BufferedReader.read(BufferedReader.java:311)
    info: [SELENDROID ERR] at org.jivesoftware.smack.b.read(AliveBufferedReader.jav
    a:21)
    info: [SELENDROID ERR] at org.jivesoftware.smack.f.b.read(ObservableReader.java
    :42)
    info: [SELENDROID ERR] at org.kxml2.io.KXmlParser.peek(KXmlParser.java:925)
    info: [SELENDROID ERR] at org.kxml2.io.KXmlParser.peekType(KXmlParser.java:589)

    info: [SELENDROID ERR] at org.kxml2.io.KXmlParser.nextImpl(KXmlParser.java:333)

    info: [SELENDROID ERR] at org.kxml2.io.KXmlParser.next(KXmlParser.java:1378)
    info: [SELENDROID ERR] at org.jivesoftware.smack.l.a(PacketReader.java:45)
    info: [SELENDROID ERR] at org.jivesoftware.smack.l$1.run(PacketReader.java:72)
    info: [SELENDROID ERR] Connection to http://10.0.0.172:80 refused
    info: [SELENDROID ERR] at org.apache.http.impl.conn.DefaultClientConnectionOper
    ator.openConnection(DefaultClientConnectionOperator.java:191)
    info: [SELENDROID ERR] at org.apache.http.impl.conn.AbstractPoolEntry.open(Abst
    ractPoolEntry.java:164)
    info: [SELENDROID ERR] at org.apache.http.impl.conn.AbstractPooledConnAdapter.o
    pen(AbstractPooledConnAdapter.java:119)
    info: [SELENDROID ERR] at org.apache.http.impl.client.DefaultRequestDirector.ex
    ecute(DefaultRequestDirector.java:428)
    info: [SELENDROID ERR] at org.apache.http.impl.client.AbstractHttpClient.execut
    e(AbstractHttpClient.java:555)
    info: [SELENDROID ERR] at org.apache.http.impl.client.AbstractHttpClient.execut
    e(AbstractHttpClient.java:487)
    info: [SELENDROID ERR] at org.apache.http.impl.client.AbstractHttpClient.execut
    e(AbstractHttpClient.java:465)
    info: [SELENDROID ERR] at com.baidu.location.g$1.run(Unknown Source)
    info: [SELENDROID ERR] /10.0.0.172:80 - Network is unreachable
    info: [SELENDROID ERR] at org.apache.harmony.luni.net.PlainSocketImpl.connect(P
    lainSocketImpl.java:207)
    info: [SELENDROID ERR] at org.apache.harmony.luni.net.PlainSocketImpl.connect(P
    lainSocketImpl.java:437)
    info: [SELENDROID ERR] at java.net.Socket.connect(Socket.java:1002)
    info: [SELENDROID ERR] at org.apache.http.conn.scheme.PlainSocketFactory.connec
    tSocket(PlainSocketFactory.java:119)
    info: [SELENDROID ERR] at org.apache.http.impl.conn.DefaultClientConnectionOper
    ator.openConnection(DefaultClientConnectionOperator.java:156)
    info: [SELENDROID ERR] ... 7 more
    info: [SELENDROID ERR] loc.map.baidu.com
    info: [SELENDROID ERR] at java.net.InetAddress.lookupHostByName(InetAddress.jav
    a:497)
    info: [SELENDROID ERR] at java.net.InetAddress.getAllByNameImpl(InetAddress.jav
    a:294)
    info: [SELENDROID ERR] at java.net.InetAddress.getAllByName(InetAddress.java:25
    6)
    info: [SELENDROID ERR] at org.apache.http.impl.conn.DefaultClientConnectionOper
    ator.openConnection(DefaultClientConnectionOperator.java:136)
    info: [SELENDROID ERR] at org.apache.http.impl.conn.AbstractPoolEntry.open(Abst
    ractPoolEntry.java:164)
    info: [SELENDROID ERR] at org.apache.http.impl.conn.AbstractPooledConnAdapter.o
    pen(AbstractPooledConnAdapter.java:119)
    info: [SELENDROID ERR] at org.apache.http.impl.client.DefaultRequestDirector.ex
    ecute(DefaultRequestDirector.java:428)
    info: [SELENDROID ERR] at org.apache.http.impl.client.AbstractHttpClient.execut
    e(AbstractHttpClient.java:555)
    info: [SELENDROID ERR] at org.apache.http.impl.client.AbstractHttpClient.execut
    e(AbstractHttpClient.java:487)
    info: [SELENDROID ERR] at org.apache.http.impl.client.AbstractHttpClient.execut
    e(AbstractHttpClient.java:465)
    info: [SELENDROID ERR] at com.baidu.location.g$1.run(Unknown Source)
    info: [SELENDROID ERR] Connection to http://10.0.0.172:80 refused
    info: [SELENDROID ERR] at org.apache.http.impl.conn.DefaultClientConnectionOper
    ator.openConnection(DefaultClientConnectionOperator.java:191)
    info: [SELENDROID ERR] at org.apache.http.impl.conn.AbstractPoolEntry.open(Abst
    ractPoolEntry.java:164)
    info: [SELENDROID ERR] at org.apache.http.impl.conn.AbstractPooledConnAdapter.o
    pen(AbstractPooledConnAdapter.java:119)
    info: [SELENDROID ERR] at org.apache.http.impl.client.DefaultRequestDirector.ex
    ecute(DefaultRequestDirector.java:428)
    info: [SELENDROID ERR] at org.apache.http.impl.client.AbstractHttpClient.execut
    e(AbstractHttpClient.java:555)
    info: [SELENDROID ERR] at org.apache.http.impl.client.AbstractHttpClient.execut
    e(AbstractHttpClient.java:487)
    info: [SELENDROID ERR] at org.apache.http.impl.client.AbstractHttpClient.execut
    e(AbstractHttpClient.java:465)
    info: [SELENDROID ERR] at com.baidu.location.g$1.run(Unknown Source)
    info: [SELENDROID ERR] /10.0.0.172:80 - Network is unreachable
    info: [SELENDROID ERR] at org.apache.harmony.luni.net.PlainSocketImpl.connect(P
    lainSocketImpl.java:207)
    info: [SELENDROID ERR] at org.apache.harmony.luni.net.PlainSocketImpl.connect(P
    lainSocketImpl.java:437)
    info: [SELENDROID ERR] at java.net.Socket.connect(Socket.java:1002)
    info: [SELENDROID ERR] at org.apache.http.conn.scheme.PlainSocketFactory.connec
    tSocket(PlainSocketFactory.java:119)
    info: [SELENDROID ERR] at org.apache.http.impl.conn.DefaultClientConnectionOper
    ator.openConnection(DefaultClientConnectionOperator.java:156)
    info: [SELENDROID ERR] ... 7 more
    info: [SELENDROID ERR] java.lang.InterruptedException
    info: [SELENDROID ERR] at java.lang.VMThread.sleep(Native Method)
    info: [SELENDROID ERR] at java.lang.Thread.sleep(Thread.java:1213)
    info: [SELENDROID ERR] at java.lang.Thread.sleep(Thread.java:1195)
    info: [SELENDROID ERR] at com.sec.android.app.FileTransferManager.FTSRunningChe
    cker$EchoServerThread.run(FTSRunningChecker.java:62)
    info: [SELENDROID ERR] at java.lang.Thread.run(Thread.java:1019)

  • #19 楼 @luis 请问一个问题 selendroid 下 xpath 定位不到元素,一直很困扰我
    代码:
    puts @driver.find_element(:class,'android.widget.HorizontalScrollView')
    puts @driver.find_element(:xpath,'//ImageButton')

  • xpath 使用误区,请进 at 2014年02月26日

    #23 楼 @lihuazhang @seveniruby 求助求助 ~~(>_<)~~

  • xpath 使用误区,请进 at 2014年02月26日

    #21 楼 @lihuazhang 这是上图的两句代码 不知哪里出了问题,请帮忙看一下
    puts @driver.find_element(:class,'android.widget.HorizontalScrollView')
    puts @driver.find_element(:xpath,'//ImageButton')

  • #3 楼 @lihuazhang 改成 findelement 也不行 ,有解决的办法么?

  • xpath 使用误区,请进 at 2014年02月26日

    #18 楼 @seveniruby 我想确认下,appium+selendroid 不支持 xpath ?有没有办法修复

  • xpath 使用误区,请进 at 2014年02月26日

    #18 楼 @seveniruby 我是过 4.4 的机器,通过 id 好像不行,我已经采用 page object,但是问题在于要支持 4.1 一下版本的手机比如 2.3.5

  • xpath 使用误区,请进 at 2014年02月26日

    #16 楼 @seveniruby appium +android 在定位元素的时候,只支持 name xpath tag name,这是三种,不支持 id 获取元素,用 xpath 复杂的 U 难于维护,tag name 只能定位一类控件,name 也不一定能完全定位控件

  • xpath 使用误区,请进 at 2014年02月26日

    #13 楼 @seveniruby 现在我手里的机器都是 4.1 版本一下的,selendroid 不支持 xpath,有些控件没有 id,现在怎么办呢?要抛弃 appium,直接用 selendroid 么?

  • xpath 使用误区,请进 at 2014年02月26日

    #11 楼 @seveniruby 原来是这样 ,那要是维护两套(selendroid、uiautomator)xpath,维护量太大了,请问有什么好的办法么