![]() You need to pass ‘app’ as key and your local path(/home/test.apk) as value to set the capability”Ĭaps.setCapability(“app”,”/Localpath/Your.apk”) ĪppActivity: This is to set the Android activity that you want to launch from your package. You need to set ‘androidDeviceReadyTimeout’ as key and desired seconds as ‘value’ĭesiredCapabilities caps = new DesiredCapabilities() Ĭaps.setCapability(“androidDeviceReadyTimeout”,”20″) Īpp: Appium will install the app binary on the appropriate device. You don’t need this capability, if you’re using appPackage & appActivity. Let’s see few capabilities which needs to be used to start a sessionĪndroidDeviceReadyTimeout: To set the timeout in seconds for a device to become ready after booting. ![]() Without setting these capabilities, you can’t even establish a session. You need to follow correct syntax to set key and value. The capabilities keys are case sensitive. We need to set the capability name as ‘key’ and capability value as ‘value’. Still confused?ĭesired capabilities is a JSON object (keys and values pair). ![]() Using Desired Capabilities we can communicate with Appium server by sending a POST request, saying that I’d like to start a session with so and so platform and platformversion, browser etc…Now the server understands it and starts a session with the capabilities which we have set. Desired Capabilities got introduced in Selenium to work with lot of browser capabilities like handling browser cookies, SSL security popup blah blah.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |