Dalek.DriverNative.Commands.Element Class
Element related methods
Item Index
Methods
- _attributeCb
- _clickCb
- _cssCb
- _enabledCb
- _existsCb
- _getNumberOfElementsCb
- _getNumberOfElementsCb
- _heightCb
- _scrollCb
- _selectedCb
- _sendKeysCb
- _setValueCb
- _submitCb
- _textCb
- _typeCb
- _valCb
- _visibleCb
- _waitForElementCb
- _widthCb
- attribute
- click
- click
- css
- enabled
- exists
- getNumberOfElements
- getNumberOfVisibleElements
- height
- scroll
- selected
- sendKeys
- setValue
- submit
- text
- val
- visible
- waitForElement
- width
Methods
_attributeCb
-
selector
-
hash
-
attribute
-
expected
-
result
Sends out an event with the results of the attribute
call
Parameters:
-
selector
StringSelector expression to find the element
-
hash
StringUnique hash of that fn call
-
attribute
StringThe attribute that should be checked
-
expected
StringThe expected attribute content
-
result
StringSerialized JSON with the results of the attribute call
Returns:
promise Attribute promise
_clickCb
-
selector
-
hash
-
uuid
Sends out an event with the results of the click
call
Parameters:
-
selector
StringSelector expression to find the element
-
hash
StringUnique hash of that fn call
-
uuid
StringUnique hash of that fn call
Returns:
promise Click promise
_cssCb
-
selector
-
property
-
expected
-
hash
-
result
Sends out an event with the results of the css
call
Parameters:
-
selector
StringSelector expression to find the element
-
property
StringThe css property to check
-
expected
StringThe expected css value
-
hash
StringUnique hash of that fn call
-
result
StringSerialized JSON with the reuslts of the text call
Returns:
Promise
_enabledCb
-
selector
-
hash
-
expected
-
result
Sends out an event with the results of the enabled
call
Parameters:
-
selector
StringSelector expression to find the element
-
hash
StringUnique hash of that fn call
-
expected
StringThe expected content
-
result
StringSerialized JSON with the results of the selected call
Returns:
Promise
_existsCb
-
selector
-
hash
-
result
Sends out an event with the results of the exists
call
Parameters:
-
selector
StringSelector expression to find the element
-
hash
StringUnique hash of that fn call
-
result
StringSerialized JSON with the reuslts of the exists call
Returns:
promise Exists promise
_getNumberOfElementsCb
-
selector
-
hash
-
expected
-
res
Sends out an event with the results of the getNumberOfVisibleElements
call
Parameters:
-
selector
StringSelector expression to find the element
-
hash
StringUnique hash of that fn call
-
expected
IntegerExpected number of matched elements
-
res
StringSerialized JSON with the results of the getNumberOfVisibleElements call
Returns:
promise GetNumberOfElements promise
_getNumberOfElementsCb
-
selector
-
hash
-
expected
-
res
Sends out an event with the results of the getNumberOfElements
call
Parameters:
-
selector
StringSelector expression to find the element
-
hash
StringUnique hash of that fn call
-
expected
IntegerExpected number of matched elements
-
res
StringSerialized JSON with the results of the getNumberOfElements call
Returns:
promise GetNumberOfElements promise
_heightCb
-
selector
-
expected
-
hash
-
result
Sends out an event with the results of the height
call
Parameters:
-
selector
StringSelector expression to find the element
-
expected
StringThe expected height value
-
hash
StringUnique hash of that fn call
-
result
StringSerialized JSON with the reuslts of the text call
Returns:
Promise
_scrollCb
-
selector
-
options
-
hash
-
uuid
Sends out an event with the results of the scroll
call
Parameters:
-
selector
StringSelector expression to find the element
-
options
ObjectX offset, Y offset, Speed
-
hash
StringUnique hash of that fn call
-
uuid
StringUnique hash of that fn call
Returns:
promise Scroll promise
_selectedCb
-
selector
-
hash
-
expected
-
result
Sends out an event with the results of the selected
call
Parameters:
-
selector
StringSelector expression to find the element
-
hash
StringUnique hash of that fn call
-
expected
StringThe expected content
-
result
StringSerialized JSON with the results of the selected call
Returns:
Promise
_sendKeysCb
-
selector
-
hash
Sends out an event with the results of the sendKeys
call
Parameters:
-
selector
StringSelector expression to find the element
-
hash
StringUnique hash of that fn call
Returns:
promise Type promise
_setValueCb
-
selector
-
keystrokes
-
hash
Sends out an event with the results of the setvalue
call
Parameters:
-
selector
StringSelector expression to find the element
-
keystrokes
StringValue to set
-
hash
StringUnique hash of that fn call
Returns:
promise Type promise
_submitCb
-
selector
-
hash
-
uuid
Sends out an event with the results of the submit
call
Parameters:
-
selector
StringSelector expression to find the element
-
hash
StringUnique hash of that fn call
-
uuid
StringUnique hash of that fn call
Returns:
promise Click promise
_textCb
-
selector
-
hash
-
expected
-
result
Sends out an event with the results of the text
call
Parameters:
-
selector
StringSelector expression to find the element
-
hash
StringUnique hash of that fn call
-
expected
StringThe expected text content
-
result
StringSerialized JSON with the reuslts of the text call
Returns:
Promise
_typeCb
-
selector
-
hash
Sends out an event with the results of the type
call
Parameters:
-
selector
StringSelector expression to find the element
-
hash
StringUnique hash of that fn call
Returns:
promise Type promise
_valCb
-
selector
-
hash
-
expected
-
result
Sends out an event with the results of the val
call
Parameters:
-
selector
StringSelector expression to find the element
-
hash
StringUnique hash of that fn call
-
expected
StringThe expected content
-
result
StringSerialized JSON with the results of the val call
Returns:
Promise
_visibleCb
-
selector
-
hash
-
result
Sends out an event with the results of the visible
call
Parameters:
-
selector
StringSelector expression to find the element
-
hash
StringUnique hash of that fn call
-
result
StringSerialized JSON with the reuslts of the visible call
Returns:
promise Visible promise
_waitForElementCb
-
selector
-
hash
-
uuid
Sends out an event with the results of the waitForElement
call
Parameters:
-
selector
StringSelector expression to find the element
-
hash
StringUnique hash of that fn call
-
uuid
StringUnique hash of that fn call
Returns:
promise WaitForElement promise
_widthCb
-
selector
-
expected
-
hash
-
result
Sends out an event with the results of the width
call
Parameters:
-
selector
StringSelector expression to find the element
-
expected
StringThe expected width value
-
hash
StringUnique hash of that fn call
-
result
StringSerialized JSON with the reuslts of the text call
Returns:
Promise
attribute
-
selector
-
attribute
-
expected
-
hash
Checks if an element has an attribute with the expected value
Parameters:
-
selector
StringSelector expression to find the element
-
attribute
StringThe attribute that should be checked
-
expected
StringThe expected text content
-
hash
StringUnique hash of that fn call
click
-
selector
-
hash
Clicks an element
Parameters:
-
selector
StringSelector expression to find the element
-
hash
StringUnique hash of that fn call
click
-
selector
-
hash
-
uuid
Clicks an element
Parameters:
-
selector
StringSelector expression to find the element
-
hash
StringUnique hash of that fn call
-
uuid
StringUnique hash of that fn call
css
-
selector
-
property
-
expected
-
hash
Checks if an element has the expected css property/value pairs
Parameters:
-
selector
StringSelector expression to find the element
-
property
StringThe css property to check
-
expected
StringThe expected css value
-
hash
StringUnique hash of that fn call
enabled
-
selector
-
expected
-
hash
Checks if an element is enabled
Parameters:
-
selector
StringSelector expression to find the element
-
expected
StringThe expected content
-
hash
StringUnique hash of that fn call
exists
-
selector
-
hash
Checks if an element exists
Parameters:
-
selector
StringSelector expression to find the element
-
hash
StringUnique hash of that fn call
getNumberOfElements
-
selector
-
expected
-
uuid
Returns the number of elements matched by the selector
Parameters:
-
selector
StringSelector expression to find the elements
-
expected
IntegerExpected number of matched elements
-
uuid
StringUnique hash of that fn call
getNumberOfVisibleElements
-
selector
-
expected
-
uuid
Returns the number of visible elements matched by the selector
Parameters:
-
selector
StringSelector expression to find the elements
-
expected
IntegerExpected number of matched elements
-
uuid
StringUnique hash of that fn call
height
-
selector
-
expected
-
hash
Checks th height of an element
Parameters:
-
selector
StringSelector expression to find the element
-
expected
StringThe expected height value
-
hash
StringUnique hash of that fn call
scroll
-
selector
-
options
-
hash
-
uuid
Scrolls from an element to a location defined in pixels
Parameters:
-
selector
StringSelector expression to find the element
-
options
ObjectX offset, Y offset, Speed
-
hash
StringUnique hash of that fn call
-
uuid
StringUnique hash of that fn call
selected
-
selector
-
expected
-
hash
Checks if an element is selected
Parameters:
-
selector
StringSelector expression to find the element
-
expected
StringThe expected content
-
hash
StringUnique hash of that fn call
sendKeys
-
selector
-
hash
Sends keys to an element (whether or not it is an input)
Parameters:
-
selector
StringSelector expression to find the element
-
hash
StringUnique hash of that fn call
setValue
-
selector
-
hash
Set a value to an Element
Parameters:
-
selector
StringSelector expression to find the element
-
hash
StringUnique hash of that fn call
submit
-
selector
-
hash
-
uuid
Submits a form
Parameters:
-
selector
StringSelector expression to find the element
-
hash
StringUnique hash of that fn call
-
uuid
StringUnique hash of that fn call
text
-
selector
-
expected
-
hash
Checks if an element has the expected text
Parameters:
-
selector
StringSelector expression to find the element
-
expected
StringThe expected text content
-
hash
StringUnique hash of that fn call
val
-
selector
-
expected
-
hash
Checks if an element has the expected value
Parameters:
-
selector
StringSelector expression to find the element
-
expected
StringThe expected content
-
hash
StringUnique hash of that fn call
visible
-
selector
-
hash
Checks if an element is visible
Parameters:
-
selector
StringSelector expression to find the element
-
hash
StringUnique hash of that fn call
waitForElement
-
selector
-
timeout
-
hash
-
uuid
Wait for an element for a specific amount of time
Parameters:
-
selector
StringSelector expression to find the element
-
timeout
IntegerTime to wait in ms
-
hash
StringUnique hash of that fn call
-
uuid
StringUnique hash of that fn call
width
-
selector
-
expected
-
hash
Checks th width of an element
Parameters:
-
selector
StringSelector expression to find the element
-
expected
StringThe expected width value
-
hash
StringUnique hash of that fn call