Narek
Narek

Reputation: 1

Get device parameters from appium automatically

I have one little question. Can I get device parameters like UDID from appium when it's session is starting and pass it to my pom.xml? And if yes, how can I do that?

Upvotes: 0

Views: 716

Answers (1)

Mohammad Monfared
Mohammad Monfared

Reputation: 675

You can use this in run-time:

    driver.getCapabilities().getCapability("udid")

Upvotes: 0

Related Questions