Example #1
0
        public void Test()
        {
            IWebDriver driver = new FirefoxDriver();

            driver.Url = ConfigurationManager.AppSettings["URL"];

            var loginpage = new Loginpage(driver);

            loginpage.loginapplication("LoginTest");

            var homepage = new HomePage(driver);

            homepage.clickonhomepage();

            //driver.Close();



            //driver.FindElement(By.Id("txtUsername")).SendKeys("admin");
            //driver.FindElement(By.Id("txtPassword")).SendKeys("admin123");
            //driver.FindElement(By.Id("btnLogin")).Click();
            //string mytitle = driver.Title;
            //Console.WriteLine("The Title page is" + mytitle);
            //Thread.Sleep(2000);
            //driver.Manage().Window.Maximize();
            //Thread.Sleep(3000);
            //driver.Close();
        }
Example #2
0
        public void WhenIProvideUsernameAndPasswordAndClickLoginButton()
        {
            var loginpage = new Loginpage(driver);

            loginpage.loginapplication("LoginTest");
        }