title: DesiredCapabilities for Selenium native android application obsolete
body: <p>I am trying to set up a selenium framework to test a application on an android emulator. However I keep getting a warning that DesiredCapabilities is obsolete. I cant find any information on this apart from that relation to browsers. But in my framework I am trying to test a native application. </p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>    [TestMethod]
      public void Test_Open_Mobile_App()
      {
          DesiredCapabilities cap = new DesiredCapabilities();
  
          //set the emulator
          cap.SetCapability("platformVersion", "8.1");
          cap.SetCapability("platformName", "Android");
          cap.SetCapability("deviceName", "Device 01 Oreo_1440x2560");
          cap.SetCapability("udid", "emulator-5554");
          cap.SetCapability("deviceType", "phone");
          cap.SetCapability("device", "Android");
          cap.SetCapability("app", "C:/Users/User/Desktop/Mobile Tests/App APK/com.hyperspheric.go4schools.apk");
          cap.SetCapability("appPackage", "appPackage");
          cap.SetCapability("appActivity", "appActivity");
  
  
          _driver = new AndroidDriver&lt;AndroidElement&gt;(new Uri("http://127.0.0.1:4723/wd/hub"), cap);
      }
  </code></pre>