예제 #1
0
 internal FillInWith(Element element, Driver driver, RobustWrapper robustWrapper, DriverScope scope, Options options)
 {
     this.element = element;
     this.driver = driver;
     this.robustWrapper = robustWrapper;
     this.scope = scope;
     this.options = options;
 }
예제 #2
0
 internal FillInWith(string locator, Driver driver, RobustWrapper robustWrapper, DriverScope scope, Options options)
 {
     this.locator = locator;
     this.driver = driver;
     this.robustWrapper = robustWrapper;
     this.scope = scope;
     this.options = options;
 }
예제 #3
0
 public bool Missing(Options options = null)
 {
     return robustWrapper.Robustly(new ElementMissingQuery(this, SetOptions(options)));
 }
예제 #4
0
 public Scope Hover(Options options = null)
 {
     RetryUntilTimeout(new Hover(this, driver, SetOptions(options)));
     return this;
 }
예제 #5
0
 public bool Exists(Options options = null)
 {
     return robustWrapper.Robustly(new ElementExistsQuery(this, SetOptions(options)));
 }
예제 #6
0
 public ElementScope Click(Options options = null)
 {
     RetryUntilTimeout(new Click(this, driver, SetOptions(options)));
     return this;
 }
 internal RobustElementScope(ElementFinder elementFinder, DriverScope outerScope, Options options)
     : base(elementFinder, outerScope)
 {
     this.options = options;
 }
예제 #8
0
 /// <summary>
 /// Check that a dialog with the specified is not present. Returns as soon as the dialog is not present, or when the <see cref="SessionConfiguration.Timeout"/> is reached.
 /// </summary>
 /// <param name="withText">Dialog text</param>
 /// <returns>Whether an element does not appears</returns>
 public bool HasNoDialog(string withText, Options options = null)
 {
     return Query(new HasNoDialogQuery(driver, withText, this, SetOptions(options)));
 }
예제 #9
0
 /// <summary>
 /// Fill in a previously found text field
 /// </summary>
 /// <param name="element">The text field</param>
 /// <returns>With</returns>
 public FillInWith FillIn(Element element, Options options = null)
 {
     return new FillInWith(element, driver, robustWrapper, this, SetOptions(options));
 }
예제 #10
0
 /// <summary>
 /// Cancel the first modal dialog to appear within the <see cref="SessionConfiguration.Timeout"/>
 /// </summary>
 /// <exception cref="T:DWSelFramework.MissingHtmlException">Thrown if the dialog cannot be found</exception>
 public void CancelModalDialog(Options options = null)
 {
     RetryUntilTimeout(new CancelModalDialog(this, driver, SetOptions(options)));
 }
예제 #11
0
 public BrowserWindow FindWindow(string locator, Options options = null)
 {
     return new RobustWindowScope(driver, SessionConfiguration, robustWrapper, waiter, urlBuilder, SetOptions(options), new WindowFinder(driver, locator, this));
 }