ReactAction

ReactAction

Base DSL actions for React components

Constructor

new ReactAction()

Source:

Members

keyDown

Source:

Performs a custom keydown event on a certain element.

keyPress

Source:

Performs a custom keyPress event on a certain element.

Methods

(static) blur(selector)

Source:

Leaves the focus from the React element.

Parameters:
Name Type Description
selector

(static) clickEnter(selector)

Source:

Performs an enter on a certain element.

Parameters:
Name Type Description
selector

(static) clickEscape(selector)

Source:

Performs an escape on a certain element.

Parameters:
Name Type Description
selector

(static) focus(selector)

Source:

Focuses on a certain React element. Mainly has to be used for input fields.

Parameters:
Name Type Description
selector

(static) mouseLeave(selector)

Source:

Leaves the hover from the React component.

Parameters:
Name Type Description
selector

(static) mouseMove(selector)

Source:

Hovers the specified React component.

Parameters:
Name Type Description
selector

(async, static) setDatePickerValue(selector, dateValue, blurAction)

Source:

Sets the specified date in date picker.

This method is created fo testing react-datepicker library.

Parameters:
Name Type Description
selector
dateValue
blurAction

a function if specified to be executed before focusing back to a component. That's required to apply the value.