public void ShouldBeAbleToRegisterOnSite() { var pageDriver = new PageDriver(_webDriver); var homePage = pageDriver.NavigateTo<HomePage>(_baseUri); var logInPage = homePage.ClickLogOn(); logInPage.AssertHasRegistrationLink(); }
public void ShouldFailWithShortPassword() { var pageDriver = new PageDriver(_webDriver); var registerUserPage = pageDriver.NavigateTo<RegisterUserPage>(string.Format("{0}/Account/Register", _baseUri)); var randomUser = generateRandomUser("short"); var homePage = registerUserPage.RegisterUser(randomUser); homePage.AssertErrorMessagePresent(); }
public void FindMatchingElements(By idToFind, string elementName) { var elements = PageDriver.FindElements(idToFind); if (elements.Count == 0) { throw new Exception("Not Found: " + elementName); } ElementHelper helper = new ElementHelper(PageDriver, elements); Element = helper; }
public ControlDriverForTesting(string id, Element element, PageDriver parent) : base(id, element, parent) { }
public void WaitImplicitly(int waitSeconds) { PageDriver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(waitSeconds); }
public TranslationSteps(PageDriver PageDriver) { _PageDriver = PageDriver; }