The two capability settings are incompatible. ![]() This is saying that the phone does not have permission to run your software.īecause your code is setting the capability "noReset" to true, you can't set the capability "autoGrantPermissions" to true because it won't work. ![]() I suspect your problem lies with the errors: Import io.appium.java_ ĭesiredCapabilities caps = new DesiredCapabilities() Ĭaps.setCapability("deviceName", "My Phone") Ĭaps.setCapability("udid", "7970dc54") // Give Device ID of your mobile phoneĬaps.setCapability("platformName", "Android") Ĭaps.setCapability("platformVersion", "9 PKQ1.180904.001") Ĭaps.setCapability("appPackage", "") Ĭaps.setCapability("appActivity", ".activities.MainActivity") Import io.appium.java_client.MobileElement Import io.appium.java_client.AppiumDriver The code I am trying to run is: package tests : You need the _GRANT_RUNTIME_PERMISSIONS permission to use the PackageManager.INSTALL_GRANT_RUNTIME_PERMISSIONS Please check the server log for more details. The error I get is: Exception in thread "main" : Unable to create a new remote session. I am not able to run my automation testing with Appium server using Eclipse with Selenium.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |