Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
2
Help us understand the problem. What is going on with this article?

More than 1 year has passed since last update.

@kasamax

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

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の位置情報を偽装できることができました。

2
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
2
Help us understand the problem. What is going on with this article?