user2761483
user2761483

Reputation: 51

List available appium session id

Is there any way to list all available Appium sessions id before doing driver initialization ?

driver.init(desired_capability) 

Upvotes: 0

Views: 6947

Answers (1)

pankaj mishra
pankaj mishra

Reputation: 2615

Yes, you can check to see if there already sessions on the server by sending a request to /wd/hub/sessions.

For example, if your server is running on

0.0.0.0:4723

You can get the list of sessions by opening the following URL in your browser

http://0.0.0.0:4723/wd/hub/sessions

Upvotes: 5

Related Questions