ExecuteAutomation

Writing simple code using Appium with C#

In this post we will start to write a very simple code using Appium with C# to automate android mobile application. Since this post is more like the posts we discussed in Appium with Java in our ExecuteAutomation blog and video series, I am not going to write much on the explanation of nitty-gritty details in this post. Here is the complete video of the discussion Here is the complete code from the above video discussion.
    [TestClass]
    public class UnitTest1
    {

        //Creating instance for Appium driver
        AppiumDriver driver;

        [TestMethod]
        public void TestMethod1()
        {

            DesiredCapabilities cap = new DesiredCapabilities();
            cap.SetCapability("deviceName", "donatello");
            cap.SetCapability("appActivity", "com.example.calculator");



            //Launch the Android driver
            driver = new AndroidDriver(new Uri("http://127.0.0.1:4723/wd/hub"), cap);


            Assert.IsNull(driver.Context);
        }
   }
Thanks for reading the post and watching the video !!! Please leave your comments and let me know if there is anything I should update in this post. Thanks, Karthik KK