This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
1 / 4
May 2018

Hey! I have a scenario where I need to switch from native application to a native web browser .
I am able to do it in android but not iOS. Can someone suggest me on this?

  • created

    May '18
  • last reply

    May '18
  • 3

    replies

  • 221

    views

  • 2

    users

Does your application navigate you directly to browser or you need to go manually ?

No it won’t navigate I will have to start it using command, that’s where I need support.

If you are using appium 1.8, You can write the code similar to this :
HashMap<String, Object> args = new HashMap<>();
args.put(“bundleId”, X_BUNDLE_ID);
driver.executeScript(“mobile: launchApp”, args);

args.put(“bundleId”, BROWSER);
driver.executeScript(“mobile: activateApp”, args);