• 我用的是 JAVA,appium 是 1.2.2 的,就用户这一框输不进去,密码是输入正常的。
    我用 threadSleep(1000L);
    login_et_username.sendKeys(userName);

    threadSleep(1000L);
    login_et_password.sendKeys(password);
    threadSleep(1000L);
    btn_login.click();

  • 楼主你好!我也遇到同样的问题,我的系统是 MAC,奇怪的是在手机上密码框的输入是正常的,但是用户名这一行一直都是没有任何操作的!
    info: [debug] [BOOTSTRAP] [debug] Clearing text not successful falling back to UiAutomator method clear

    info: [debug] [BOOTSTRAP] [debug] clearText not successful, continuing with setText anyway

    info: [debug] [BOOTSTRAP] [debug] Sending plain text to element: 邮箱/手机号码 15989345905

    info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":true,"status":0}

  • info: [debug] Not auto-detecting udid, running on sim
    info: [debug] Localizable.strings is not currently supported when using real devices.
    info: [debug] Not setting locale because we're using a real device
    info: [debug] Creating instruments
    info: [debug] Preparing uiauto bootstrap
    info: [debug] Dynamic bootstrap dir:
    info: [debug] Dynamic env:
    info: [debug] Dynamic bootstrap code:
    info: [debug] Dynamic bootstrap path:

    error: iOS log capture failed: spawn ENOENT

    info: [debug] Reusing dynamic bootstrap:
    info: [debug] Not setting iOS and app preferences since we're on a real device
    info: [debug] Starting iOS device log capture via deviceconsole
    info: [debug] Cleaning up appium session
    info: [debug] Error: spawn ENOENT
    at errnoException (child_process.js:1001:11)
    at Process.ChildProcess._handle.onexit (child_process.js:792:34)
    info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: spawn ENOENT)","code":"ENOENT","errno":"ENOENT","syscall":"spawn","origValue":"spawn ENOENT"},"sessionId":null}
    info: <-- POST /wd/hub/session 500 146.424 ms - 197
    info: [debug] Not setting device type since we're connected to a device
    info: [debug] Creating iDevice object with udid 4880fb6f9866658d651ede8ea883c49ad1d71297
    info: [debug] Couldn't find ideviceinstaller, trying built-in at /Volumes/Appium/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller
    info: [debug] Checking app install status using: /Volumes/Appium/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 4880fb6f9866658d651ede8ea883c49ad1d71297 --bundle com.hipalsports.hipal

    error: Failed to start an Appium session, err was: Error: spawn ENOENT

    info: [debug] App is installed.

    info: [debug] fullReset not requested. No need to install.
    info: [debug] Starting command proxy.
    提示我这样的错误,但是 1.2.1 好像也没成功

  • 楼主你的总是解决了吗?我遇到和你一样的问题!


  • 这里的 server address 需要设置吗?

  • 楼主这个问题你有遇到过吗?

  • info: --> POST /wd/hub/session {"desiredCapabilities":{"platformName":"iOS","platformVersion":"7.1","newCommandTimeout":"999999","automationName":"Appium","deviceName":"iPhone Retina (4-inch 64-bit)"}}

    info: [debug] App is an iOS bundle, will attempt to run as pre-existing

    info: [debug] Creating new appium session ef17f59f-ece8-46f4-ad67-8ccdc89b514b

    info: [debug] Removing any remaining instruments sockets

    info: [debug] Cleaned up instruments socket /tmp/instruments_sock

    info: [debug] Setting Xcode folder

    info: [debug] Setting Xcode version

    info: [debug] Setting iOS SDK Version

    info: [debug] iOS SDK Version set to 7.1

    info: [debug] Detecting automation tracetemplate

    info: [debug] Not auto-detecting udid, running on sim

    info: [debug] Localizable.strings is not currently supported when using real devices.
    info: [debug] Not setting locale because we're using a real device
    info: [debug] Creating instruments

    info: [debug] Preparing uiauto bootstrap
    info: [debug] Dynamic bootstrap dir:
    info: [debug] Dynamic env:

    error: iOS log capture failed: spawn ENOENT

    info: [debug] Dynamic bootstrap code:
    info: [debug] Dynamic bootstrap path:
    info: [debug] Reusing dynamic bootstrap:
    info: [debug] Not setting iOS and app preferences since we're on a real device
    info: [debug] Starting iOS device log capture via deviceconsole
    info: [debug] Cleaning up appium session
    info: [debug] Error: spawn ENOENT
    at errnoException (child_process.js:1001:11)
    at Process.ChildProcess._handle.onexit (child_process.js:792:34)
    info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: spawn ENOENT)","code":"ENOENT","errno":"ENOENT","syscall":"spawn","origValue":"spawn ENOENT"},"sessionId":null}
    info: <-- POST /wd/hub/session 500 147.450 ms - 197
    info: [debug] Not setting device type since we're connected to a device

    error: Failed to start an Appium session, err was: Error: spawn ENOENT

    info: [debug] Creating iDevice object with udid 4880fb6f9866658d651ede8ea883c49ad1d71297
    info: [debug] Couldn't find ideviceinstaller, trying built-in at /Volumes/Appium/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller
    info: [debug] Checking app install status using: /Volumes/Appium/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 4880fb6f9866658d651ede8ea883c49ad1d71297 --bundle com.hipalsports.hipal

    info: [debug] App is installed.

    info: [debug] fullReset not requested. No need to install.
    info: [debug] Starting command proxy.

    info: [debug] Instruments socket server started at /tmp/instruments_sock
    info: [debug] Starting instruments

    info: [debug] Instruments is at: /Applications/Xcode 5.1.app/Contents/Developer/usr/bin/instruments
    info: Launching instruments
    info: [debug] Attempting to run app on real device with UDID 4880fb6f9866658d651ede8ea883c49ad1d71297
    info: [debug] Spawning instruments with command: /Applications/Xcode 5.1.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode 5.1.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 4880fb6f9866658d651ede8ea883c49ad1d71297 com.hipalsports.hipal -e UIASCRIPT /Users/hipal/Library/Application Support/appium/bootstrap/bootstrap-286b5f87607290ee.js -e UIARESULTSPATH /tmp/appium-instruments
    info: [debug] And extra without-delay env: {}
    info: [debug] And launch timeouts (in ms): {"global":90000}

    info: --> GET /wd/hub/status {}

    info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}}

    运行时提示了我以上错误,按照你的方法直接在命令行中运行
    JackdeMac-mini:~ hipal$ /Volumes/Appium/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 4880fb6f9866658d651ede8ea883c49ad1d71297 --bundle com.hipalsports.hipal
    [....] Waiting for iOS device to be connected
    found device id
    [ 0%] Found device (4880fb6f9866658d651ede8ea883c49ad1d71297), beginning check

    App is installed!
    [100%] Check completed com.hipalsports.hipal
    JackdeMac-mini:~ hipal$

    安装应该是成功的了!但是还是报错
    Could not start a new session

    Be sure the Appium server is running with an application opened by using the "App Path" parameter in Appium.app (along with package and activity for Android) or by connecting with selenium client and supplying this in the desired capabilities object.

    弄了几天了这个问题!依然找不到出路!

  • 楼主这个和你上面描述的是一个问题吗?求解呀,我用的是 MAC,想用录制的方式录 IOS! 谢谢了!

  • 这个要怎么 built 呀?我查了这个路径是有这个文件 的呀

  • error: iOS log capture failed: spawn ENOENT

    info: [debug] Dynamic bootstrap code:
    info: [debug] Dynamic bootstrap path:
    info: [debug] Reusing dynamic bootstrap:
    info: [debug] Not setting iOS and app preferences since we're on a real device
    info: [debug] Starting iOS device log capture via deviceconsole
    info: [debug] Cleaning up appium session
    info: [debug] Error: spawn ENOENT
    at errnoException (child_process.js:1001:11)
    at Process.ChildProcess._handle.onexit (child_process.js:792:34)
    info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: spawn ENOENT)","code":"ENOENT","errno":"ENOENT","syscall":"spawn","origValue":"spawn ENOENT"},"sessionId":null}
    info: <-- POST /wd/hub/session 500 145.563 ms - 197
    info: [debug] Not setting device type since we're connected to a device
    info: [debug] Creating iDevice object with udid 962f806a6657c8f031222b297fa4d700619d49af
    info: [debug] Couldn't find ideviceinstaller, trying built-in at /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller
    info: [debug] Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 962f806a6657c8f031222b297fa4d700619d49af --bundle com.hipalsports.hipal

    error: Failed to start an Appium session, err was: Error: spawn ENOENT

    以上错误是我连 iphone 时的报错!


  • 我的设置是这个

  • error: iOS log capture failed: spawn ENOENT

    info: <-- POST /wd/hub/session 500 2882.143 ms - 197
    info: [debug] Not setting device type since we're connected to a device
    info: [debug] Creating iDevice object with udid 4880fb6f9866658d651ede8ea883c49ad1d71297
    info: [debug] Couldn't find ideviceinstaller, trying built-in at /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller
    info: [debug] Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 4880fb6f9866658d651ede8ea883c49ad1d71297 --bundle com.hipalsports.hipal

    error: Failed to start an Appium session, err was: Error: spawn ENOENT
    提示我这个错误!

  • 求楼主解答

  • 在我本机下找不到 cd /usr/local/lib/node_modules/appium/build/deviceconsole/这个文件
    我用的是 MAC 系统

  • 我按照这个思路改了,还是报