Members
keyDown
Performs a custom keydown event on a certain element.
keyPress
Performs a custom keyPress event on a certain element.
typeNewText
Cleans previously typed text and fill in with a new value.
Methods
(static) bulkCtrlKey(selectors)
Performs a bulk of Ctrl clicks.
Parameters:
| Name | Type | Description |
|---|---|---|
selectors |
(static) bulkShiftKey(selectors)
Performs a bulk of Shift clicks.
Parameters:
| Name | Type | Description |
|---|---|---|
selectors |
(static) clearText(selector)
Clear text in found element.
Parameters:
| Name | Type | Description |
|---|---|---|
selector |
(static) click(selector)
Clicks on element if it's clickable. For example button can be disabled and click won't occur, you need to fetch that unaccepted behavior earlier.
Parameters:
| Name | Type | Description |
|---|---|---|
selector |
Object | CSS Selector or Protractor Element |
(static) clickEnter(selector)
Performs an enter on a certain element.
Parameters:
| Name | Type | Description |
|---|---|---|
selector |
(static) clickEscape(selector)
Performs an escape on a certain element.
Parameters:
| Name | Type | Description |
|---|---|---|
selector |
(static) clickIfClickable(selector)
Clicks on element nevertheless if it's clickable or not. You can use it when element is appeared only for some period of time and then disappears. As e2e especially for IE is slow it can happen that Protractor can miss to click on that element during that period of time. For example it can be used to close timed notification messages to proceed further, as toastr might hide some elements which you want to click.
Parameters:
| Name | Type | Description |
|---|---|---|
selector |
Object | CSS Selector or Protractor Element |
(static) ctrlClick(selector)
Performs Ctrl click on a certain element.
Parameters:
| Name | Type | Description |
|---|---|---|
selector |
(static) doubleClick(selector)
Performs double click on a certain element.
Parameters:
| Name | Type | Description |
|---|---|---|
selector |
(static) executeVoidScript(scriptFunction, …scriptArguments)
Executes native JavaScript function.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
scriptFunction |
function | ||
scriptArguments |
array |
<repeatable> |
(static) focus(selector)
Focuses on a certain element. Mainly has to be used for input fields.
Parameters:
| Name | Type | Description |
|---|---|---|
selector |
(static) hover(selector)
Hovers on a certain element.
Parameters:
| Name | Type | Description |
|---|---|---|
selector |
(static) jsClick(selector)
Clicks on element by using native JavaScript execution.
Parameters:
| Name | Type | Description |
|---|---|---|
selector |
Object | CSS Selector or Protractor Element |
(static) jsDragAndDrop(fromElement, toElement, waitBeforeDropping)
Drag the element and drops it to a certain area.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
fromElement |
|||
toElement |
|||
waitBeforeDropping |
500
|
time to wait between drag and dropping the element |
(static) shiftClick(selector)
Performs Shift click on a certain element.
Parameters:
| Name | Type | Description |
|---|---|---|
selector |
(static) typeText(selector, text)
Types a text into a specified element.
Parameters:
| Name | Type | Description |
|---|---|---|
selector |
||
text |