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();
        }
Exemple #3
0
        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)
 {
 }
Exemple #5
0
 public void WaitImplicitly(int waitSeconds)
 {
     PageDriver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(waitSeconds);
 }
Exemple #6
0
 public ControlDriverForTesting(string id, Element element, PageDriver parent) : base(id, element, parent)
 {
 }
Exemple #7
0
 public TranslationSteps(PageDriver PageDriver)
 {
     _PageDriver = PageDriver;
 }