示例#1
0
        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)
 {
 }
示例#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)
 {
 }