Exemple #1
0
 public void GivenILoginToAnyXeroOrganisation()
 {
     _driver.Navigate().GoToUrl(AppConfig.Url);
     UsernameTextBox.SendKeys(TestData.LoginDetails.Email);
     PasswordTextBox.SendKeys(TestData.LoginDetails.Password);
     LoginButton.Click();
 }
Exemple #2
0
        public DashboardPage LoginAsAdmin(TestContext context)
        {
            driver.Navigate().GoToUrl(context.Properties["SFURL"].ToString());
            LoginRegisterLink.Click();

            UsernameTextBox.SendKeys(context.Properties["SFUN"].ToString());
            PasswordTextBox.SendKeys(context.Properties["SFPW"].ToString());
            LoginButton.Click();

            return(NOCSPageHelper.DashboardPage);
        }
Exemple #3
0
 public void EnterUsername(string username)
 {
     UsernameTextBox.SendKeys(username);
 }
Exemple #4
0
 //comment
 public void InputUsername(string username)
 {
     UsernameTextBox.Clear();
     UsernameTextBox.SendKeys(username);
 }
Exemple #5
0
 public void Login(string username, string password)
 {
     UsernameTextBox.SendKeys(username);
     PasswordTextBox.SendKeys(password);
     LoginBtn.Click();
 }