From 374cd3a6cabf2fda7a2e39e2714e3a1bdced21fc Mon Sep 17 00:00:00 2001 From: Vasily Strelyaev Date: Fri, 31 Mar 2017 17:43:01 +0300 Subject: [PATCH] [docs] Add a note about touch devices (#1370) * Add a note about touch devices * Fix broken links * Move touch devices remarks to a separate section --- .../blog/2017-1-19-testcafe-v0-12-0-released.md | 2 +- docs/articles/documentation/test-api/actions/README.md | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/articles/blog/2017-1-19-testcafe-v0-12-0-released.md b/docs/articles/blog/2017-1-19-testcafe-v0-12-0-released.md index ec99071086b..e78c7fe0792 100644 --- a/docs/articles/blog/2017-1-19-testcafe-v0-12-0-released.md +++ b/docs/articles/blog/2017-1-19-testcafe-v0-12-0-released.md @@ -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 diff --git a/docs/articles/documentation/test-api/actions/README.md b/docs/articles/documentation/test-api/actions/README.md index fa8e35b53f3..94682548670 100644 --- a/docs/articles/documentation/test-api/actions/README.md +++ b/docs/articles/documentation/test-api/actions/README.md @@ -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` \ No newline at end of file