Property | Type | Description |
---|
Method | Description | |
---|---|---|
Clear ( ) : void |
Method to clear the text out of an Input element
|
|
Click ( ) : void |
Click this element. If this causes a new page to load, this method will block until the page has loaded. At this point, you should discard all references to this element and any further operations performed on this element will have undefined behaviour unless you know that the element and the page will still be present. If this element is not clickable, then this operation is a no-op since it's pretty common for someone to accidentally miss the target when clicking in Real Life
|
|
Equals ( object obj ) : bool |
Compares if two elements are equal
|
|
FindElement ( By by ) : IWebElement |
Finds the first element in the page that matches the By object
|
|
FindElementByClassName ( string className ) : IWebElement |
Finds the first element in the page that matches the CSS Class supplied
|
|
FindElementByCssSelector ( string cssSelector ) : IWebElement |
Finds the first element matching the specified CSS selector.
|
|
FindElementById ( string id ) : IWebElement |
Finds the first element in the page that matches the ID supplied
|
|
FindElementByLinkText ( string linkText ) : IWebElement |
Finds the first of elements that match the link text supplied
|
|
FindElementByName ( string name ) : IWebElement |
Finds the first of elements that match the name supplied
|
|
FindElementByPartialLinkText ( string partialLinkText ) : IWebElement |
Finds the first of elements that match the part of the link text supplied
|
|
FindElementByTagName ( string tagName ) : IWebElement |
Finds the first of elements that match the DOM Tag supplied
|
|
FindElementByXPath ( string xpath ) : IWebElement |
Finds the first of elements that match the XPath supplied
|
|
FindElements ( By by ) : ReadOnlyCollection |
Finds the elements on the page by using the By object and returns a ReadOnlyCollection of the Elements on the page
|
|
FindElementsByClassName ( string className ) : ReadOnlyCollection |
Finds a list of elements that match the classname supplied
|
|
FindElementsByCssSelector ( string cssSelector ) : ReadOnlyCollection |
Finds all elements matching the specified CSS selector.
|
|
FindElementsById ( string id ) : ReadOnlyCollection |
Finds the first element in the page that matches the ID supplied
|
|
FindElementsByLinkText ( string linkText ) : ReadOnlyCollection |
Finds the first of elements that match the link text supplied
|
|
FindElementsByName ( string name ) : ReadOnlyCollection |
Finds a list of elements that match the name supplied
|
|
FindElementsByPartialLinkText ( string partialLinkText ) : ReadOnlyCollection |
Finds a list of elements that match the classname supplied
|
|
FindElementsByTagName ( string tagName ) : ReadOnlyCollection |
Finds a list of elements that match the DOM Tag supplied
|
|
FindElementsByXPath ( string xpath ) : ReadOnlyCollection |
Finds a list of elements that match the XPath supplied
|
|
GetAttribute ( string attributeName ) : string |
If this current element is a form, or an element within a form, then this will be submitted to the remote server. If this causes the current page to change, then this method will block until the new page is loaded.
|
|
GetCssValue ( string propertyName ) : string |
Method to return the value of a CSS Property
|
|
GetHashCode ( ) : int |
Method to get the hash code of the element
|
|
RemoteWebElement ( |
Initializes a new instance of the RemoteWebElement class.
|
|
Select ( ) : void |
Select or unselect element. This operation only applies to input elements such as checkboxes, options in a select and radio buttons.
|
|
SendKeys ( string text ) : void |
Method for sending native key strokes to the browser
|
|
Submit ( ) : void |
If this current element is a form, or an element within a form, then this will be submitted to the remote server. If this causes the current page to change, then this method will block until the new page is loaded.
|
|
Toggle ( ) : bool |
If the element is a checkbox this will toggle the elements state from selected to not selected, or from not selected to selected
|
Method | Description | |
---|---|---|
Execute ( |
Executes a command on this element using the specified parameters.
|
|
FindElement ( string mechanism, string value ) : IWebElement |
Finds a child element matching the given mechanism and value.
|
|
FindElements ( string mechanism, string value ) : ReadOnlyCollection |
Finds all child elements matching the given mechanism and value.
|
public Equals ( object obj ) : bool | ||
obj | object | Object to compare against |
return | bool |
protected Execute ( |
||
commandToExecute | The |
|
parameters | object>.Dictionary | A |
return | OpenQA.Selenium.Remote.Response |
public FindElement ( By by ) : IWebElement | ||
by | By | By mechanism to find the element |
return | IWebElement |
protected FindElement ( string mechanism, string value ) : IWebElement | ||
mechanism | string | The mechanism by which to find the element. |
value | string | The value to use to search for the element. |
return | IWebElement |
public FindElementByClassName ( string className ) : IWebElement | ||
className | string | className of the |
return | IWebElement |
public FindElementByCssSelector ( string cssSelector ) : IWebElement | ||
cssSelector | string | The id to match. |
return | IWebElement |
public FindElementById ( string id ) : IWebElement | ||
id | string | ID of the element |
return | IWebElement |
public FindElementByLinkText ( string linkText ) : IWebElement | ||
linkText | string | Link text of element |
return | IWebElement |
public FindElementByName ( string name ) : IWebElement | ||
name | string | Name of the element |
return | IWebElement |
public FindElementByPartialLinkText ( string partialLinkText ) : IWebElement | ||
partialLinkText | string | part of the link text |
return | IWebElement |
public FindElementByTagName ( string tagName ) : IWebElement | ||
tagName | string | tag name of the element |
return | IWebElement |
public FindElementByXPath ( string xpath ) : IWebElement | ||
xpath | string | xpath to the element |
return | IWebElement |
public FindElements ( By by ) : ReadOnlyCollection |
||
by | By | By mechanism to find the element |
return | ReadOnlyCollection |
protected FindElements ( string mechanism, string value ) : ReadOnlyCollection |
||
mechanism | string | The mechanism by which to find the elements. |
value | string | The value to use to search for the elements. |
return | ReadOnlyCollection |
public FindElementsByClassName ( string className ) : ReadOnlyCollection |
||
className | string | CSS class name of the elements on the page |
return | ReadOnlyCollection |
public FindElementsByCssSelector ( string cssSelector ) : ReadOnlyCollection |
||
cssSelector | string | The CSS selector to match. |
return | ReadOnlyCollection |
public FindElementsById ( string id ) : ReadOnlyCollection |
||
id | string | ID of the Element |
return | ReadOnlyCollection |
public FindElementsByLinkText ( string linkText ) : ReadOnlyCollection |
||
linkText | string | Link text of element |
return | ReadOnlyCollection |
public FindElementsByName ( string name ) : ReadOnlyCollection |
||
name | string | Name of element |
return | ReadOnlyCollection |
public FindElementsByPartialLinkText ( string partialLinkText ) : ReadOnlyCollection |
||
partialLinkText | string | part of the link text |
return | ReadOnlyCollection |
public FindElementsByTagName ( string tagName ) : ReadOnlyCollection |
||
tagName | string | DOM Tag of the element on the page |
return | ReadOnlyCollection |
public FindElementsByXPath ( string xpath ) : ReadOnlyCollection |
||
xpath | string | xpath to element on the page |
return | ReadOnlyCollection |
public GetAttribute ( string attributeName ) : string | ||
attributeName | string | Attribute you wish to get details of |
return | string |
public GetCssValue ( string propertyName ) : string | ||
propertyName | string | CSS property key |
return | string |
public RemoteWebElement ( |
||
parentDriver | The |
|
id | string | The ID assigned to the element. |
return | System |
public SendKeys ( string text ) : void | ||
text | string | String containing what you would like to type onto the screen |
return | void |