0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

appiumオレオレメモ

Posted at

brew install node
npm install -g appium@next
npm install -g wd
npm install -g appium-doctor
brew install ffmpeg
npm install -g mjpeg-consumer
set-simulator-location
brew install carthage
brew install lyft/formulae/set-simulator-location
brew tap facebook/fb
brew install idb-companion
pip3 install fb-idb
brew tap wix/brew
brew install applesimutils
brew install ios-deploy
appium-doctor -ios

pip3 install Appium-Python-Client

appium driver install xcuitest
これでエラーになるときは、v1の可能性を疑うこと

シミュレータのリスト
xcrun xctrace list devices

def test():
    desired_caps = {
        "platformName": "iOS",
        "appium:deviceName": "iPhone 14",
        "appium:platformVersion": "16.2",
        "appium:automationName": "XCUITest",
        "appium:bundleId": "com.apple.Maps",
        "appium:noReset": "true"
    }
    driver = webdriver.Remote("http://xx.xx.xx.xx:4723", desired_caps)


    el1 = driver.find_element(by=AppiumBy.ACCESSIBILITY_ID, value="Allow Once")
    el1.click()

    driver.quit()

参考
https://www.scriptlife.jp/contents/programming/2020/02/09/appium-sample-2020/
https://qiita.com/emurin/items/0dd3ad5a64addfc99992
https://qiita.com/lethe2211/items/917ec62d27d5384f5685
https://hub.docker.com/r/quamotion/appium-docker-ios

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?