Use the same driver instance for both native app and mobile browser


I have a case that I need to retain the same driver instance in case the mobile browser application is switched to. I don’t want to create another driver with ‘browserName’ capability in this case, just want to re-use the same driver initialized from my native application

So is this possible?


Try includeSafariInWebviews capability to be able to switch to Safari as to a normal web view while automating native apps

Thanks for your help. What about Android? I want to attach existing created driver session to another session with browserName capability defined there. I execute my tests on remote cloud services, every new session created to will actually book a device there which is not possible due to the session is created already

I read this article: but seem like it’s not achievable in Appium.