Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: change method command on doubleTap code examples #2498

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/reference/execute-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ y | number | no | Vertical coordinate offset. | 100

```java
RemoteWebElement e = driver.findElement(AppiumBy.accessibilityId("target element"));
driver.executeScript("mobile: pinch", ImmutableMap.of(
driver.executeScript("mobile: doubleTap", ImmutableMap.of(
"elementId", e.getId()
));
```
Expand All @@ -1209,15 +1209,15 @@ y | number | no | Vertical coordinate offset. | 100

```js
const e = await $('~target element');
await driver.executeScript('mobile: pinch', [{
await driver.executeScript('mobile: doubleTap', [{
elementId: e.elementId
}]);

=== "Python"

```python
e = driver.find_element(by=AppiumBy.ACCESSIBILITY_ID, value='target element')
driver.execute_script("mobile: pinch", {
driver.execute_script("mobile: doubleTap", {
"elementId": e.id
})
```
Expand All @@ -1226,7 +1226,7 @@ y | number | no | Vertical coordinate offset. | 100

```ruby
e = driver.find_element :accessibility_id, 'target element'
driver.execute_script 'mobile: pinch', {
driver.execute_script 'mobile: doubleTap', {
elementId: e.ref
}
```
Expand All @@ -1235,7 +1235,7 @@ y | number | no | Vertical coordinate offset. | 100

```csharp
var e = driver.FindElement(By.AccessibilityId("target element"))
driver.ExecuteScript("mobile: pinch", new Dictionary<string, object>() {
driver.ExecuteScript("mobile: doubleTap", new Dictionary<string, object>() {
{"elementId", element.Id}
});
```
Expand Down
Loading