Exemple #1
0
        public void LoggingIn()
        {
            driver = new FirefoxDriver();
            driver.Manage().Window.Size = new System.Drawing.Size(1280, 720);

            startpage = new LoginPart(driver);
            startpage.Navigate();
            startpage.OperateForm(Helper.username, Helper.password);
        } // LoggingIn
Exemple #2
0
        public void LoginBadPassword()
        {
            var part = new LoginPart(driver);

            Assert.That(part.Navigate(), Is.True);

            if (part.IsForm(true) == true)
            {
                part.OperateForm(Helper.username, "+1234");
                Assert.That(part.IsErrorMessage(), Is.True);
            }
            else
            {
                Assert.Fail("Problem with login Form");
            }
        } //
Exemple #3
0
        public void LoginValid()
        {
            var part = new LoginPart(driver);

            Assert.That(part.Navigate(), Is.True);

            if (part.IsForm(true) == true)
            {
                part.OperateForm(Helper.username, Helper.password);
                Assert.That(part.IsForm(false), Is.False);
            }
            else
            {
                Assert.Fail("Problem with login Form");
            }
        } //