0

I have come across two ways to add/set capabilities.

  1. capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "Android Emulator");

    and

  2. capabilities.setCapability("deviceName","Android Emulator");

so my question is how are they different and which is used when?

Community
  • 1
  • 1
Leyon Gudinho
  • 21
  • 1
  • 6

1 Answers1

0

It's absolutely the same thing.

Using MobileCapabilityType gives you all the options to choose from - Enum. At the bottom line, typing MobileCapabilityType.DEVICE_NAME returns "deviceName"

David Ep
  • 270
  • 1
  • 6