Is it possible to get session_id of active driver opened with Selenium and Appium if several drivers were activated?
<p>While automating I open several browsers, say Firefox, with</p>

<pre><code>driver1 = webdriver.Firefox()
driver2 = webdriver.Firefox()
driver3 = webdriver.Firefox()
.....
</code></pre>

<p>Is there a way to get the <code>session_id</code> and webdriver itself of the active Browser?
The same question for Appium. Is it possible to get <code>session_id</code> and driver itself of the active device (virtual or real)?</p>