Skip to content

Commit

Permalink
[docs] Add a note about touch devices (DevExpress#1370)
Browse files Browse the repository at this point in the history
* Add a note about touch devices

* Fix broken links

* Move touch devices remarks to a separate section
  • Loading branch information
VasilyStrelyaev authored and kirovboris committed Dec 18, 2019
1 parent bb4133c commit 374cd3a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/articles/blog/2017-1-19-testcafe-v0-12-0-released.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ The `t.takeScreenshot`, `t.resizeWindow`, `t.resizeWindowToFitDevice` and `t.max

The state of webpage elements can now be extended with custom properties.

We have added the [addCustomDOMProperties](https://devexpress.github.io/testcafe/documentation/test-api/selecting-page-elements/selectors.html#adding-custom-properties-to-element-state)
We have added the [addCustomDOMProperties](https://devexpress.github.io/testcafe/documentation/test-api/selecting-page-elements/selectors.html#custom-properties)
method to the selector, so that you can add properties to the element state like in the following example.

```js
Expand Down
10 changes: 10 additions & 0 deletions docs/articles/documentation/test-api/actions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,13 @@ You can pass any of the following objects as a `selector`.
Before executing an action, TestCafe waits for the target element to appear
in the DOM and become visible. If this does not happen
within the [selector timeout](../selecting-page-elements/selectors.md#selector-timeout), the test fails.

## Remarks for Touch Devices

On touch devices, TestCafe emulates touch events instead of mouse events.

Mouse event | Touch event
----------- | -------------
`mousemove` (when hovering or dragging) | `touchmove` (dragging only)
`mousedown` | `touchstart`
`mouseup` | `touchend`

0 comments on commit 374cd3a

Please sign in to comment.