LoginSignup
5
2

More than 3 years have passed since last update.

自動テストでSimulatorの位置情報を偽装したいときはidbをお忘れなく

Posted at

Simulatorで位置情報を偽装したく、driver.set_locationで位置情報を偽装してテストを実行したのですがiOSのときだけ下記のエラーが出ました。

An unknown server-side error occurred while processing the command. Original error: Could not complete operation. Make sure Simulator UI is running and the parent Appium application (e. g. Appium.app or Terminal.app) is present in System Preferences > Security & Privacy > Privacy > Accessibility list. If the operation is still unsuccessful then it is not supported by this Simulator. Original error: Command 'osascript -e ' ...

調べてみると fbsimctlが必要とのことで(https://github.com/appium/appium/issues/12575 を参照) 入れてみようとしたところビルドエラーになりました。ビルドエラーを解決しようとしてもエラーは解決できなかったためhttps://seleniumjp.slack.com で聞いてみたところ「今のappium-doctorではfbsimctlがidbにリネームされた」という話を聞きました。appium-doctorを叩いてみたところご丁寧に

Why idb is needed and how to install it: https://github.com/appium/appium-idb

と教えてくれたのでをインストールしテスト実行するとSimulatorの位置情報を偽装できることができました。

5
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
2