Defines custom form browser commands that are made available through the global WebdriverIO browser object.
Methods
(inner) fillInForm(fieldsToID, data) → {Object}
Fill in a form with data
Parameters:
Name | Type | Description |
---|---|---|
fieldsToID |
Object | Object whose property values are CSS selectors matching HTML fields
For example: { firstName: 'input[id="editPersoInfoDTO.information.firstName"]', newPassword: '#password', confirmPassword: '#confirmPassword', } |
data |
Object | Object whose property values are data to be inserted into related HTML fields
{ firstName: 'John', newPassword: 'my_password', confirmPassword: 'my_password', } |
- Since:
- 1.0.0
- Source:
Returns:
Promise
- Type
- Object
(inner) selectRadioButton(selector) → {Object}
Select a radio button identified with a CSS selector by clicking on it
Parameters:
Name | Type | Description |
---|---|---|
selector |
String | CSS selector to identify the radio button |
- Since:
- 1.0.0
- Source:
Returns:
Promise
- Type
- Object
(inner) selectRadioButtonFromLabel(selector) → {Object}
Select a radio button identified with a CSS selector by clicking on its associated label
Parameters:
Name | Type | Description |
---|---|---|
selector |
String | CSS ID selector to identify the radio button |
- Since:
- 1.0.0
- Source:
Returns:
Promise
- Type
- Object
(inner) tickCheckbox(selector) → {Object}
Tick a checkbox
Parameters:
Name | Type | Description |
---|---|---|
selector |
String | CSS selector to identify the checkbox |
- Since:
- 1.0.0
- Source:
Returns:
Promise
- Type
- Object
(inner) untickCheckbox(selector) → {Object}
Untick a checkbox
Parameters:
Name | Type | Description |
---|---|---|
selector |
String | CSS selector to identify the checkbox |
- Since:
- 1.0.0
- Source:
Returns:
Promise
- Type
- Object