Esempio n. 1
0
        public void Within(By by, Action <PageElement> action)
        {
            Nav.Logger.LogDebug($"Scoping {by}");

            var pageElement = new PageElement(Nav.FindOne(by));

            action(pageElement);
        }
Esempio n. 2
0
        public static void FormFor <TModel>(this PageElement page, Action <PageElement <TModel> > action)
        {
            var formId = page.Nav.Naming.Id(typeof(TModel));

            var by = By.CssSelector($"[data-for='{formId}']");

            page.Nav.Logger.LogDebug($"Form {by}");

            page.Within(by, action);
        }
Esempio n. 3
0
 public static void Refresh(this PageElement page)
 {
     page.Nav.Driver.Navigate().Refresh();
 }