How to switch from one app to another app at run time

前端 未结 4 1280
甜味超标
甜味超标 2021-02-03 10:46

Is there any possibility to switch from one application to another application at run time using Appium.

Thanks

4条回答
  •  迷失自我
    2021-02-03 11:24

    You can change applications by re-instantiating the webdriver with the new application's attributes.

    driver = webdriver.Remote(appiumUrl,dcapabilityApp1)
    [Your tests]
    driver = webdriver.Remote(appiumUrl,dcapabilityApp2)
    [New app tests]
    

    As long as you don't close/disconnect the emulator/simulator/device then your user data will be maintained.

提交回复
热议问题