Is it possible to automate two apps at the same time in iOS?

We have a scenario like this:

Execute the script in app 1, at some point app 1 will send us an SMS with a url, app1 expects a validation code in a text box

We have to open the SMS app to check if the SMS exists, this SMS has a URL, and when we click on it, it sends us to app1 again, but automatically the confirmation code is written in the text box.

then continue with your script.

Can this be done? what do we need to do?

Thank.

+1


source to share


1 answer


Yes. As per your scenario, you should start the application (call it app2) in the middle of the script execution in application1. You can open app2 using the code below.

 driver.startActivity(app2PackageName, app2ActivityName);

      



Now app2 will be open, you can click the link in app2 which will open app 1 and you will be able to access the items in app 1.

0


source







All Articles