How to kill all the opened safari windows before launching safari browser on iPhone devices using appium. The problem i am getting is ,Safari browser is launching with SafariLauncher ,I am not able close all the remaining opened browsers.
2017-01-11 05:20:42:733 - info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Could not navigate to webview! Err: Error: connect ECONNREFUSED 127.0.0.1:27753)”,“origValue”:“Could not navigate to webview! Err: Error: connect ECONNREFUSED 127.0.0.1:27753”},“sessionId”:null}
2017-01-11 05:20:42:735 - info: <-- POST /wd/hub/session 500 35339.308 ms - 280
How to kill all the opened safari windows before launching safari browser on iPhone devices using appium. The problem i am getting is ,Safari browser is launching with SafariLauncher ,I am not able close all the remaining opened browsers and launching browser with default google page.