How to pick any random device of a specific brand if the desired model is not available?

How to pick any random device of a specific brand if the desired model is not available?

Hi Dipen,

You can use the regex option in capabilities.

For example: capabilities.setCapability("deviceName", "OnePlus.*"); This allocates any available device of the brand OnePlus.