HI All, I have a scenario where I have to automate few steps in mobile application. At one of the step it will automatically launch the Safari Browser. I need to switch from App to the opened Safari browser without closing my App. The I need to automate some steps in Safari Browser and once done i need to come back to my App at the same state where I left so that I can continue working on the app to automate the rest of the test steps. How we can achieve this scenario?
I wrote a while ago about this.
The strategy is to start with a web app but then you have to install your app in test manually. There is an activity for this Activities - Install App
Then you have to use Activities - Manage Other App to switch to your application.
When the app switches back to the browser, because Appium would have set debuggable views, you should be able to find selectors and to automate anything in the browser.
HI Cristian, Thanks for the solution. In My case I did not start with the web app. As per my scenario clicking on a link in our ipad app it opens the safari browser and I am able to navigate and perform the task on the browser. After that I am using the Manage other app to switch back to App. I am automating my scenario using Browser stack, so first it install the app and I perform task and then it switches to safari where I am still using Manage other app to switch to safari. Post completing of task I am switching back to app using Manage other app.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.