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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -