c# - The Appium desired capabilties code in the constructor of the class gives object null reference error -
i created 2 different projects. in project 1 have class have constructor following code setup appium server
desiredcapabilities capabilities = new desiredcapabilities(); capabilities.setcapability("device", "android"); capabilities.setcapability(capabilitytype.platform, "windows"); capabilities.setcapability("devicename", "soti india (sm-p600)"); capabilities.setcapability("platformname", "android"); capabilities.setcapability("platformversion", "4.4"); capabilities.setcapability("apppackage", "net.soti.hub"); // app package capabilities.setcapability("appactivity","net.soti.securecontentlibrary.activities.splashactivity"); driver = new androiddriver(new uri("http://127.0.0.1:4723/wd/hub"), capabilities); driver.context = "native_app";
now class in project calling constructor write testmethods getting "object null reference"
error @ _addappiumcommands() method
Comments
Post a Comment