예제 #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
예제 #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");
            }
        } //
예제 #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");
            }
        } //