Exemplo n.º 1
0
        public static String Can_getAfterLogin_pageTitle()
        {
            Browser.Instance.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(50);
            //Debug.WriteLine("Getting Title");

            return(Login_Page.Return_Title());
        }
Exemplo n.º 2
0
        public static void Can_Enter_LoginData(String userName, String password)
        {
            //id="UserName" and id="Password"
            //var userNameElement = Browser.Instance.FindElement(By.Id("UserName"));
            //var passwordElement = Browser.Instance.FindElement(By.Id("Password"));


            //userNameElement.Clear();
            //userNameElement.SendKeys(userName);

            //passwordElement.Clear();
            //passwordElement.SendKeys(password);

            Login_Page loginPageObj = new Login_Page();

            loginPageObj.UserNameEle.Clear();
            loginPageObj.UserNameEle.SendKeys(userName);

            loginPageObj.PasswordEle.Clear();
            loginPageObj.PasswordEle.SendKeys(password);
        }