Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
saikrishna321 authored Mar 5, 2022
1 parent b4efa62 commit a79d20f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,32 @@ driver.addCommand(HttpMethod.POST, String.format("/session/%s/plugin/actions/swi
driver.execute("dragAndDrop", ImmutableMap.of("elementId", source.getId(), "percentage", 50));
```

# WDIO

```
driver.addCommand(
'dragAndDrop',
command('POST', '/session/:sessionId/plugin/actions/dragAndDrop', {
command: 'dragAndDrop',
parameters: [
{
name: 'sourceId',
type: 'string',
description: 'a valid parameter',
required: true,
},
{
name: 'destinationId',
type: 'string',
description: 'a valid parameter',
required: true,
},
],
})
);
await driver.dragAndDrop(sourceId, destinationId);
```
## Supported

* Horizontal Swipe
Expand Down

0 comments on commit a79d20f

Please sign in to comment.