2016-04-28 60 views
0
開始Appium會議

我無法或者通過檢查器或揭開序幕的appium會議的webdriver錯誤在OSX

Appium版本1.4.13, OSX 10.10.5 V

Appium LOG:

error: Failed to start an Appium session, err was: Error: Command failed: /bin/sh -c ideviceinstaller -u 1828692D-XXXX-44E2-B901-699E89C43B9X -l 


info: [debug] Error: Command failed: /bin/sh -c ideviceinstaller -u 1828692D-XXXX-44E2-B938-699E89C43B9X -l 

    at ChildProcess.exithandler (child_process.js:751:12) 
    at ChildProcess.emit (events.js:110:17) 
    at maybeClose (child_process.js:1015:16) 
    at Socket.<anonymous> (child_process.js:1183:11) 
    at Socket.emit (events.js:107:17) 
    at Pipe.close (net.js:485:12) 
info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Command failed: /bin/sh -c ideviceinstaller -u 1828692D-XXXX-44E2-B938-699E89C43B9X -l \n)","killed":false,"code":2,"signal":null,"cmd":"/bin/sh -c ideviceinstaller -u 1828692D-XXXX-44E2-B938-699E89C43B9X -l ","origValue":"Command failed: /bin/sh -c ideviceinstaller -u 1828692D-257B-44E2-B938-699E89C43B97 -l \n"},"sessionId":null} 
info: <-- POST /wd/hub/session 500 680.025 ms - 418 

我得到同樣的事情,當我拉開序幕我的測試如此:

self.driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps) 

我卸載了ideviceinstaller,appium,node,homebrew等所有東西,我很難過。任何幫助將搖滾!

回答

0

給一個嘗試通過使用此:

new IOSDriver<WebElement>(new URL("http://127.0.0.1:4723/wd/hub"), capabilities); 

我在Java中使用,希望蟒蛇,沒有太大的差別。

0

Aight!我想到了!經過一番小小的挖掘,可以很安全地向每個人發出帖子的問題,請問他們是使用模擬器還是帶有appium的真實設備。一旦你使用模擬器,並且你有一個UUiD ideviceinstaller將會失敗。

所以,如果你在真實和模擬器之間切換,一定要更新你的設置。學過的知識。