Esempio n. 1
0
        // todo: unit/integration test this
        public IWebElement ActionOnLocator(Locators.By.jQueryBy jQueryFindExpression, Action <IWebElement> action, TimeSpan maxWait = default(TimeSpan))
        {
            var element = _finder.Element(jQueryFindExpression, maxWait);

            action(element);
            return(element);
        }
Esempio n. 2
0
 public IElementAssert ConformTo(Locators.By.jQueryBy findExpression, Action <IEnumerable <IWebElement> > assertion, TimeSpan maxWait = default(TimeSpan))
 {
     return(ConformTo(() =>
     {
         var elements = Find.Elements(findExpression, maxWait);
         assertion(elements);
     }));
 }
Esempio n. 3
0
        public static IWebElement PerformActionOn(this IWebDriver browser, Locators.By.jQueryBy by, Action <IWebElement> actionToPerform)
        {
            var element = browser.FindElementByjQuery(@by);

            actionToPerform(element);

            return(element);
        }
Esempio n. 4
0
 public IElementAssert Exist(Locators.By.jQueryBy findExpression, string message = null, TimeSpan maxWait = default(TimeSpan))
 {
     return(Exist(() => Find.Element(findExpression, maxWait), message));
 }
 public TPage To <TPage>(Locators.By.jQueryBy jQueryElementToClick, TimeSpan maxWait = default(TimeSpan)) where TPage : UiComponent, new()
 {
     _executor.ActionOnLocator(jQueryElementToClick, e => e.Click(), maxWait);
     return(_componentFactory.CreatePage <TPage>());
 }