---
title: "Discussion on \"How to set the capabilities to open the app or execute the test on the app using the real device ?\" | Hashnode"
description: "Discussion on \"How to set the capabilities to open the app or execute the test on the app using the real device ?\". For that we can use UiAutomator2Options class or using DesiredCapabilities class\nSteps:\nStep1:\nNeed to set capabilities using the method setCapability () and need to give the values in the key value pair\nEx:\nUiAutomator2Options cap = new UiAutomator2..."
url: "https://hashnode.com/posts/how-to-set-the-capabilities-to-open-the-app-or-execute-the-test-on-the-app-using-the-real-device/672f767875cc2eaa7330bf3b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to set the capabilities to open the app or execute the test on the app using the real device ?](https://sumitsmewal.hashnode.dev/how-to-set-the-capabilities-to-open-the-app-or-execute-the-test-on-the-app-using-the-real-device?utm_source=hashnode&utm_medium=feed)

For that we can use UiAutomator2Options class or using DesiredCapabilities class Steps: Step1: Need to set capabilities using the method setCapability () and need to give the values in the key value pair Ex: UiAutomator2Options cap = new UiAutomator2...

Nov 9, 2024 · 1 min read · sumitsmewal.hashnode.dev  
Read the article

-   [#appium-testing](https://hashnode.com/tag/appium-testing)
-   [#automation](https://hashnode.com/tag/automation)
-   [#android-test-automation](https://hashnode.com/tag/android-test-automation)

## Written by

[sumit singh](https://hashnode.com/@sumitmewal)

@sumitmewal

  
[View profile](https://hashnode.com/@sumitmewal)

Automation Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
