Get device parameters from appium automatically

516 Views Asked by At

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?

1

There are 1 best solutions below

0
Mohammad Monfared On

You can use this in run-time:

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