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