Ejemplo n.º 1
0
        public void ValidLogin()
        {
            NavigateTo.LoginFormThroughTheMenu();
            Actions.FillLoginForm((string)Config.Credentials.Valid.Username, (string)Config.Credentials.Valid.Password, Config.Credentials.Valid.RepeatPassword);

            alert = Driver.driver.SwitchTo().Alert();
            Assert.AreEqual(Config.AlertMessages.SuccessfulLogin, alert.Text);

            alert.Accept();
        }
Ejemplo n.º 2
0
        public void TestMethod1()
        {
            Driver.driver.Navigate().GoToUrl("http://testing.todvachev.com/");

            NavigateTo.LoginFormThroughTheMenu();

            Thread.Sleep(5000);

            Driver.driver.Navigate().GoToUrl("http://testing.todvachev.com/");

            NavigateTo.LoginFromThroughThePost();
            Thread.Sleep(5000);

            Driver.driver.Quit();
        }