Skip to content

Commit

Permalink
docs: change method command on doubleTap code examples (#2498)
Browse files Browse the repository at this point in the history
In the documentation of the mobile: doubleTap command, the mobile: pinch command was being used in the code examples.
  • Loading branch information
Jefferson3038 authored Dec 7, 2024
1 parent d26c208 commit 0c4ca8b
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 0c4ca8b

Please sign in to comment.