I’m running Appium on MacOS to test a Ionic (mobile app framework) app on an iOS Simulator.
When I execute the following code:
Set<String> text = ((IOSDriver) driver).getContextHandles();
System.out.println(text);
It only returns one context, NATIVE_APP
instead of arrays with multiple context [NATIVE_APP and WEBVIEW]. Any help would be greatly appreciated.
Thanks!