예제 #1
0
        // Implement this method
        public void Execute(Arguments arguments)
        {
            Initialize(arguments);

            arguments.Search.Value = "//android.widget.EditText[@content-desc='Username']";
            arguments.By.Value     = "xpath";

            ElementHelper.GetElement(arguments.By.Value, arguments.Search.Value).SendKeys(arguments.email.Value);

            arguments.Search.Value = "//android.widget.EditText[@content-desc='Password']";
            arguments.By.Value     = "xpath";

            ElementHelper.GetElement(arguments.By.Value, arguments.Search.Value).SendKeys(arguments.pword.Value);

            arguments.Search.Value = "//android.view.ViewGroup[@content-desc='Log In']";
            arguments.By.Value     = "xpath";

            ElementHelper.GetElement(arguments.By.Value, arguments.Search.Value).Click();
        }
예제 #2
0
 public void Execute(Arguments arguments)
 {
     arguments.Search.Value = "//android.view.View[@content-desc='Notifications, Tab 5 of 6']";
     arguments.By.Value     = "xpath";
     ElementHelper.GetElement(arguments.By.Value, arguments.Search.Value).Click();
 }