Пример #1
0
        private PageControl(WebElementProvider provider, IPageControlContext context)
        {
            Guard.NotNull(nameof(provider), provider);
            Guard.NotNull(nameof(context), context);

            _context = context.GetImpl(provider, GetType());
        }
Пример #2
0
 public PageControlWithException(IPageControlContext context) : base(By.TagName("form"), context)
 {
 }
Пример #3
0
 public SearchResultListItem(IWebElement element, IPageControlContext context)
     : base(element, context)
 {
 }
Пример #4
0
 /// <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)
 {
 }
Пример #5
0
 /// <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)
 {
 }
Пример #6
0
 public SearchBox(IPageControlContext context) : base(By.TagName("form"), context)
 {
 }
Пример #7
0
 public SearchBoxSubmit(IPageControlContext context) : base(By.TagName("button"), context)
 {
 }
Пример #8
0
 public SearchResultList(IPageControlContext context) : base(By.ClassName("list-packages"), context)
 {
 }