示例#1
0
        public EA_POM Log_Invalids(string user, string pass)
        {
            Url_Logpage = Web_Driver.driver.Url;
            Console.WriteLine(Url_Logpage);
            //User name and Password
            UserName.SendKeys(user);
            Pasword.SendKeys(pass);
            Title_Logpage = Web_Driver.driver.Title;

            Console.WriteLine(Title_Logpage);
            //Clicking on login
            Click.Click();
            UserName.Clear();
            Pasword.Clear();
            Thread.Sleep(3000);
            //Getting text2
            Invalid_Text = Invalid_txt.Text;


            Title_Homepage = Web_Driver.driver.Title;
            Url_Homepage   = Web_Driver.driver.Url;
            Console.WriteLine(Title_Homepage);
            Console.WriteLine(Url_Homepage);
            Asserts.Log_Invalid_Text(Invalid_Text);

            Asserts.Log_Invalid_Assert_Title(Title_Logpage, Title_Homepage);
            Asserts.Log_Invalid_Text(Invalid_Text);
            return(new EA_POM());
        }