Skip to content

Commit 5fea863

Browse files
authored
add an example of multiple action chains (#819)
1 parent ca1b070 commit 5fea863

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/w3c.md

+9
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ driver.action
1515
.move_to_location(500, 500).pointer_down(:left)
1616
.move_to_location(0, 700)
1717
.release.perform
18+
19+
# multiple action chains
20+
a1 = driver.action.add_pointer_input(:touch, 'finger1') # some action chain
21+
a1.create_pointer_down(:left)
22+
23+
a2 = driver.action.add_pointer_input(:touch, 'finger1') # some action chain
24+
a2.create_pointer_down(:left)
25+
26+
driver.perform_actions [a1, a2]
1827
```
1928

2029
# Note

0 commit comments

Comments
 (0)