Could you help me to advise whether we can pass any app deeplink url in the Android or iOS browser and launch the app after clicking on the Play' icon on the alert popup where we want to close all tabs before launching the same browser for Android and iOS? In this case, I created two appium drivers, but after launching the browser from the second appium driver, I was unable to perform any action on that app from the first appium driver because the first appium driver session closed. Is one Appium driver's capability sufficient to handle mobile Android or iOS browsers and apps? Could you please have a look at the below practise code with a screen shot? I was not able to click the Play with the App' icon button on the Chrome or Safari browser and also not close all tabs once the browser launched because, in the appium inspector, it showed an error message as Interactions are not available for this element.Could you please help me on this?
String deeplink = "https://music.testing.in;
//to activate chrome browser
androidDriver.activateApp("com.android.chrome");
// to click on search box text on browser
MobileElement Searchbox =(MobileElement) androidDriver.findElementById("com.android.chrome:id/search_box_text");
Searchbox.click();
MobileElement chromeURL =(MobileElement) androidDriver.findElementById("com.android.chrome:id/url_bar");
chromeURL.click();
chromeURL.sendKeys(deeplink);
androidDriver.pressKey(new KeyEvent(AndroidKey.ENTER));
///below two line are failed
** **
```[![enter image description here][1]][1]
Thanks you for providing valuable time in advance.
[1]: https://i.stack.imgur.com/VXWVW.jpg