示例#1
0
        public void TextBox()
        {
            NavigationHelper.NavigateTOURL(ObjectRepository.Config.GetWebsite());

            LinkHelper.ClickLink(By.LinkText("Login"));


            //IWebElement emailBoxField = ObjectRepository.Driver.FindElement(By.Id("input-email"));
            //emailBoxField.Clear();

            TextboxHelper.ClearTextBox(By.Id("input-email")); //clear data out of text box
            TextboxHelper.SendTextToTextbox(By.Id("input-email"), ObjectRepository.Config.GetUsername());
        }
示例#2
0
        public void TextBox()
        {
            NavigationHelper.
            NavigateToURl(ObjectRepository.
                          Config.
                          GetWebsite());

            LinkHelper.ClickLink(By.LinkText("Login"));
            //the above click on login tab
            //IWebElement emailBoxField = ObjectRepository.
            //    Driver.
            //    FindElement(By.Id("input-email"));
            //emailBoxField.Clear();
            TextboxHelper.ClearTextBox(By.Id("input-email"));
            TextboxHelper.SendTextToTextbox(By.Id("input-email"),
                                            ObjectRepository.Config.GetUsername());
        }