/// <summary>
 /// Initializes a new instance of the <see cref="DragAndDrop"/> class.
 /// </summary>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public DragAndDrop(ElementFinder elementFinder)
 {
     this.finder = elementFinder;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TypeKeys"/> class.
 /// </summary>
 /// <param name="alertOverride">An <see cref="AlertOverride"/> object used to handle JavaScript alerts.</param>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public TypeKeys(AlertOverride alertOverride, ElementFinder elementFinder)
 {
     this.alertOverride = alertOverride;
     this.finder        = elementFinder;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetElementPositionLeft"/> class.
 /// </summary>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public GetElementPositionLeft(ElementFinder elementFinder)
 {
     this.finder = elementFinder;
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetElementWidth"/> class.
 /// </summary>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public GetElementWidth(ElementFinder elementFinder)
 {
     this.finder = elementFinder;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MouseEvent"/> class.
 /// </summary>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 /// <param name="eventType">Type of event to trigger.</param>
 public MouseEvent(ElementFinder elementFinder, string eventType)
 {
     this.finder = elementFinder;
     this.type   = eventType;
     this.fire   = "return (" + JavaScriptLibrary.GetSeleniumScript("fireEvent.js") + ").apply(null, arguments);";
 }
示例#6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Submit"/> class.
 /// </summary>
 /// <param name="alert">An <see cref="AlertOverride"/> object used to override alerts displayed in an onSubmit event handler.</param>
 /// <param name="finder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public Submit(AlertOverride alert, ElementFinder finder)
 {
     this.alert  = alert;
     this.finder = finder;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetValue"/> class.
 /// </summary>
 /// <param name="finder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public GetValue(ElementFinder finder)
 {
     this.finder = finder;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DragAndDropToObject"/> class.
 /// </summary>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public DragAndDropToObject(ElementFinder elementFinder)
 {
     this.finder = elementFinder;
 }
示例#9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Check"/> class.
 /// </summary>
 /// <param name="alert">An <see cref="AlertOverride"/> object used to handle JavaScript alerts.</param>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public Check(AlertOverride alert, ElementFinder elementFinder)
 {
     this.finder = elementFinder;
     this.alert  = alert;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="IsElementPresent"/> class.
 /// </summary>
 /// <param name="finder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public IsElementPresent(ElementFinder finder)
 {
     this.finder = finder;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetSelectOptions"/> class.
 /// </summary>
 /// <param name="finder">A <see cref="ElementFinder"/> used in getting the select options.</param>
 public GetSelectOptions(ElementFinder finder)
 {
     this.finder = finder;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AddLocationStrategy"/> class.
 /// </summary>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> object used to locate elements.</param>
 public AddLocationStrategy(ElementFinder elementFinder)
 {
     this.finder = elementFinder;
 }
示例#13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KeyEvent"/> class.
 /// </summary>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 /// <param name="state">A <see cref="KeyState"/> object defining the state of modifier keys.</param>
 /// <param name="eventName">The name of the event to send.</param>
 public KeyEvent(ElementFinder elementFinder, KeyState state, string eventName)
 {
     this.finder = elementFinder;
     this.keyState = state;
     this.eventName = eventName;
 }
示例#14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IsChecked"/> class.
 /// </summary>
 /// <param name="finder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public IsChecked(ElementFinder finder)
 {
     this.finder = finder;
 }
示例#15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetElementHeight"/> class.
 /// </summary>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public GetElementHeight(ElementFinder elementFinder)
 {
     this.finder = elementFinder;
 }
示例#16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FireNamedEvent"/> class.
 /// </summary>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 /// <param name="eventName">The name of the event to fire.</param>
 public FireNamedEvent(ElementFinder elementFinder, string eventName)
 {
     this.finder = elementFinder;
     this.name   = eventName;
     this.fire   = "return (" + JavaScriptLibrary.GetSeleniumScript("fireEvent.js") + ").apply(null, arguments);";
 }
示例#17
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IsVisible"/> class.
 /// </summary>
 /// <param name="finder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public IsVisible(ElementFinder finder)
 {
     this.finder = finder;
 }
示例#18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DoubleClick"/> class.
 /// </summary>
 /// <param name="finder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public DoubleClick(ElementFinder finder)
 {
     this.finder = finder;
 }
示例#19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FireEvent"/> class.
 /// </summary>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public FireEvent(ElementFinder elementFinder)
 {
     this.finder = elementFinder;
     this.fire   = "return (" + JavaScriptLibrary.GetSeleniumScript("fireEvent.js") + ").apply(null, arguments);";
 }
示例#20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RemoveAllSelections"/> class.
 /// </summary>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public RemoveAllSelections(ElementFinder elementFinder)
 {
     this.finder = elementFinder;
 }
示例#21
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AttachFile"/> class.
 /// </summary>
 /// <param name="finder">An <see cref="ElementFinder"/> used in finding the element.</param>
 public AttachFile(ElementFinder finder)
 {
     this.finder = finder;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetElementIndex"/> class.
 /// </summary>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public GetElementIndex(ElementFinder elementFinder)
 {
     this.finder = elementFinder;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FindSelectedOptionProperties"/> class.
 /// </summary>
 /// <param name="finder">A <see cref="ElementFinder"/> that gets options from the element.</param>
 /// <param name="property">The property on which to select the options.</param>
 public FindSelectedOptionProperties(ElementFinder finder, string property)
 {
     this.finder   = finder;
     this.property = property;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetAttribute"/> class.
 /// </summary>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public GetAttribute(ElementFinder elementFinder)
 {
     this.finder = elementFinder;
 }
示例#25
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetTable"/> class.
 /// </summary>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public GetTable(ElementFinder elementFinder)
 {
     this.finder = elementFinder;
 }
示例#26
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AssignId"/> class.
 /// </summary>
 /// <param name="finder">An <see cref="ElementFinder"/> used in finding the element to which to assign the ID.</param>
 public AssignId(ElementFinder finder)
 {
     this.finder = finder;
 }
示例#27
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClickAt"/> class.
 /// </summary>
 /// <param name="alert">An <see cref="AlertOverride"/> object used to handle JavaScript alerts.</param>
 /// <param name="finder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public ClickAt(AlertOverride alert, ElementFinder finder)
 {
     this.finder = finder;
     this.alert  = alert;
 }
示例#28
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IsOrdered"/> class.
 /// </summary>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public IsOrdered(ElementFinder elementFinder)
 {
     this.finder = elementFinder;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AddSelection"/> class.
 /// </summary>
 /// <param name="elementFinder">The <see cref="ElementFinder"/> to use in finding elements.</param>
 public AddSelection(ElementFinder elementFinder)
 {
     this.finder = elementFinder;
 }
示例#30
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RemoveSelection"/> class.
 /// </summary>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public RemoveSelection(ElementFinder elementFinder)
 {
     this.finder = elementFinder;
 }