Hi!
I have solved it using a small script
def wait_for_available_contexts(timeout = 5)
(1..timeout * 10).each do
@driver.available_contexts.count > 1 ? break : sleep(0.1)
end
end
I hope it was useful for you
Hi!
I have solved it using a small script
def wait_for_available_contexts(timeout = 5)
(1..timeout * 10).each do
@driver.available_contexts.count > 1 ? break : sleep(0.1)
end
end
I hope it was useful for you
Solved this issue by setting this capabilities :
desiredcapabilities.setCapability(“includeSafariInWebviews”, true);
desiredcapabilities.setCapability(“webviewConnectTimeout”, 5000);
webviewConnectTimeout ===> The time to wait, in ms
, for the initial presence of webviews in MobileSafari or hybrid apps. Defaults to 0