• 大赞!!!

  • #3 楼 @chenhengjie123
    哥,谢谢你。我会根据你提供的信息想办法解决解决。
    目前我已经用比较笨得方式解决了我的问题,绕了几个圈,输入 11 个数字要花好几分钟才行。效果不好。
    干掉电话文本意思是,页面上本来有电话这个静态文字的,我输入后,就被我覆盖了。这个是因为我自己得错误导致的。

  • #1 楼 @pighero001 谢谢。直接点击键盘上的 1,定位不了,我试了得。
    你说的 copy 方法,能不能具体一点?谢谢

  • Appium 并发和主从远程控制 at 2015年06月25日
    desired_caps['platformName'] = global_list.ini_file.get(global_list.mobile_phone,'OS_type')
    

    怎么拿到的 OS_type?你才能在后面去判断是否是 android 或者 ISO。udid??

  • 忘了附上 ideviceinstaller 的图。系统是有的。

    运行:

    /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 4880fb6f9866658d651ede8ea883c49ad1d71297 --bundle com.hipalsports.hipal
    

    报错

    -bash: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap: No such file or directory
    
  • 尝试了很久,必须前来求指导了。
    appium:1.4.1
    Xcode:6.3.2

    连接真机打开 inspector 报错

    log 日志:

    error: Could not initialize ideviceinstaller; make sure it is installed and works on your system
    
    info: [debug] Error: Could not initialize ideviceinstaller; make sure it is installed and works on your system
        at [object Object].IOS.getIDeviceObj (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:909:13)
        at [object Object].IOS.installToRealDevice (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:856:32)
        at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:607:21
        at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:246:17
        at iterate (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:146:13)
        at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:157:25
        at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:248:21
        at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:612:34
        at [object Object].<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios-crash-log.js:52:5)
        at [object Object].<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios-crash-log.js:27:5)
        at f (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/glob/node_modules/once/once.js:17:25)
        at Glob.<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/glob/glob.js:131:7)
        at Glob.emit (events.js:107:17)
        at Glob._finish (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/glob/glob.js:168:8)
        at done (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/glob/glob.js:157:12)
        at Glob._processReaddir2 (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/glob/glob.js:351:12)
        at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/glob/glob.js:288:17
        at RES (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/glob/node_modules/inflight/inflight.js:23:14)
        at f (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/glob/node_modules/once/once.js:17:25)
        at Glob._readdirEntries (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/glob/glob.js:480:10)
        at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/glob/glob.js:457:12
        at FSReqWrap.oncomplete (fs.js:95:15)
    info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Could not initialize ideviceinstaller; make sure it is installed and works on your system)","origValue":"Could not initialize ideviceinstaller; make sure it is installed and works on your system"},"sessionId":null}
    info: <-- POST /wd/hub/session 500 1468.450 ms - 300 
    
    error: Failed to start an Appium session, err was: Error: Could not initialize ideviceinstaller; make sure it is installed and works on your system
    

    我得设置:

    deviceconsole:

    在 Xcode 里面 Product->profile,手机上能正常运行成功。
    我得配置在 IOS 模拟器也能正常运行。真机就报错。