private PageControl(WebElementProvider provider, IPageControlContext context) { Guard.NotNull(nameof(provider), provider); Guard.NotNull(nameof(context), context); _context = context.GetImpl(provider, GetType()); }
public PageControlWithException(IPageControlContext context) : base(By.TagName("form"), context) { }
public SearchResultListItem(IWebElement element, IPageControlContext context) : base(element, context) { }
/// <summary> /// Initializes a new instance with a page control context when only <see cref="By" /> s available. /// E.g. <see cref="PageControlContextImpl.Control{T}" /> creates page control using <see cref="By" />. /// </summary> /// <param name="by">A query to search for an element</param> /// <param name="context">A page control context to resolve a page control specific context</param> protected PageControl(By by, IPageControlContext context) : this(c => c.FindElement(by), context) { }
/// <summary> /// Initializes a new instance with a page control context when element is available. /// E.g. <see cref="PageControlContextImpl.Controls{T}" /> creates page controls with elements that was found. /// </summary> /// <param name="element">An element that will be in the specific context for the page control</param> /// <param name="context">A page control context to resolve a page control specific context</param> protected PageControl(IWebElement element, IPageControlContext context) : this(x => element, context) { }
public SearchBox(IPageControlContext context) : base(By.TagName("form"), context) { }
public SearchBoxSubmit(IPageControlContext context) : base(By.TagName("button"), context) { }
public SearchResultList(IPageControlContext context) : base(By.ClassName("list-packages"), context) { }