Skip to content

Commit

Permalink
Add documentation for setDatePickerDate
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewrfindley committed Feb 8, 2019
1 parent fe3a615 commit 9470d65
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/APIRef.ActionsOnElement.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Actions are functions that emulate user behavior. They are being performed on ma
- [`.swipe()`](#swipedirection-speed-percentage)
- [`.setColumnToValue()`](#setcolumntovaluecolumnvalue--ios-only) **iOS only**
- [`.pinchWithAngle()`](#pinchWithAngle--ios-only) **iOS only**
- [`.setDatePickerDate()`](#setdatepickerdate--ios-only) **iOS only**


### `tap()`
Expand Down Expand Up @@ -146,4 +147,14 @@ angle - value in radiant - default is 0<br>
```js
await expect(element(by.id('PinchableScrollView'))).toBeVisible();
await element(by.id('PinchableScrollView')).pinchWithAngle('outward', 'slow', 0);
```
```

### `setDatePickerDate(dateString, dateFormat)` iOS only

dateString - string representing a date in the supplied dateFormat<br>
dateFormat - format for the dateString supplied<br>

```js
await expect(element(by.type('UIDatePicker'))).toBeVisible();
await element(by.type('UIDatePicker)).setDatePickerDate('2019-02-06T05:10:00-08:00', "yyyy-MM-dd'T'HH:mm:ssZZZZZ");
```

0 comments on commit 9470d65

Please sign in to comment.