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; }
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; }
public bool Missing(Options options = null) { return robustWrapper.Robustly(new ElementMissingQuery(this, SetOptions(options))); }
public Scope Hover(Options options = null) { RetryUntilTimeout(new Hover(this, driver, SetOptions(options))); return this; }
public bool Exists(Options options = null) { return robustWrapper.Robustly(new ElementExistsQuery(this, SetOptions(options))); }
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; }
/// <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))); }
/// <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)); }
/// <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))); }
public BrowserWindow FindWindow(string locator, Options options = null) { return new RobustWindowScope(driver, SessionConfiguration, robustWrapper, waiter, urlBuilder, SetOptions(options), new WindowFinder(driver, locator, this)); }