The following code works fine when run in windows, but fails when connected to Appium Studio running on Mac.
dc.setCapability(“autoDismissAlerts”, true );
driver = new IOSDriver<>( new URL(settings.getConfig().get(“DriverHost”)), dc);
For running on Mac I need to specify the following line and only then it works.
dc.setCapability(MobileCapabilityType. UDID , deviceId);
I have a scenario where I switch to multiple devices, which works fine on windows, but fails on Mac.