From 6af3fec78b24a0757b197a15a8c7598c7a68018c Mon Sep 17 00:00:00 2001 From: Kazuaki MATSUO Date: Sat, 1 Sep 2018 11:27:57 +0900 Subject: [PATCH] add an example of multiple action chains --- docs/w3c.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/w3c.md b/docs/w3c.md index 9abafe6b..ecdad8ea 100644 --- a/docs/w3c.md +++ b/docs/w3c.md @@ -15,6 +15,15 @@ driver.action .move_to_location(500, 500).pointer_down(:left) .move_to_location(0, 700) .release.perform + +# multiple action chains +a1 = driver.action.add_pointer_input(:touch, 'finger1') # some action chain +a1.create_pointer_down(:left) + +a2 = driver.action.add_pointer_input(:touch, 'finger1') # some action chain +a2.create_pointer_down(:left) + +driver.perform_actions [a1, a2] ``` # Note