Appium を使用して iOS テストを自動化しようとしています。ユーザーの位置情報を必要とし、最初の起動時に位置情報の許可を要求するアプリがあります。Selenium を新規インストールに接続しようとすると、ポップアップが表示されて失敗します。ポップアップを手動で受け入れると、Seleium と Appium は確実に接続され、テストを続行できます。
これはサーバー出力のコピーです。
error: Instruments did not launch successfully, failing session
error: Failed to start an Appium session, err was: Instruments did not launch successfully--please check your app paths or bundle IDs and try again
info: Responding to client with error: {"status":6,"value":{"message":"A session is either terminated or not started","origValue":"Instruments did not launch successfully--please check your app paths or bundle IDs and try again"},"sessionId":"faccc84b-fa8e-4137-ad77-f0c79d09b045"}
POST /wd/hub/session 500 13605ms - 270
debug: - - - "POST /wd/hub/session HTTP/1.1" 500 270 "-" "Ruby"
info: Clearing out appium devices
およびセレン出力のコピー:
Selenium::WebDriver::Error::NoSuchDriverError:
A session is either terminated or not started
次のコマンドで Selenium を初期化しています。
@driver = Selenium::WebDriver.for(:remote, :desired_capabilities => capabilities, :url => server_url)
どんな助けでも大歓迎です!