From 0c4ca8b01aa66ee0325a0b4a810af67d23b76e16 Mon Sep 17 00:00:00 2001 From: Jefferson3038 <87451569+Jefferson3038@users.noreply.github.com> Date: Sat, 7 Dec 2024 15:28:28 -0400 Subject: [PATCH] docs: change method command on doubleTap code examples (#2498) In the documentation of the mobile: doubleTap command, the mobile: pinch command was being used in the code examples. --- docs/reference/execute-methods.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/reference/execute-methods.md b/docs/reference/execute-methods.md index 96ea84dd8..18a4253f7 100644 --- a/docs/reference/execute-methods.md +++ b/docs/reference/execute-methods.md @@ -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() )); ``` @@ -1209,7 +1209,7 @@ 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 }]); @@ -1217,7 +1217,7 @@ y | number | no | Vertical coordinate offset. | 100 ```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 }) ``` @@ -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 } ``` @@ -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() { + driver.ExecuteScript("mobile: doubleTap", new Dictionary() { {"elementId", element.Id} }); ```