From e7d391b8d930ca56dfadff1e178dfceaec9c64be Mon Sep 17 00:00:00 2001 From: Appium Triager Date: Wed, 20 Mar 2019 22:05:03 -0700 Subject: [PATCH] Update generated docs (#12357) --- docs/en/commands/context/get-context.md | 2 +- docs/en/commands/context/get-contexts.md | 6 +++++- docs/en/commands/context/set-context.md | 10 +++++++++- docs/en/commands/interactions/touch/move.md | 10 +++++----- 4 files changed, 20 insertions(+), 8 deletions(-) diff --git a/docs/en/commands/context/get-context.md b/docs/en/commands/context/get-context.md index 0b50ae032..8f237df57 100644 --- a/docs/en/commands/context/get-context.md +++ b/docs/en/commands/context/get-context.md @@ -46,7 +46,7 @@ $context = $driver->context(); ```csharp // C# -// TODO C# sample +string Context = driver.Context; ``` diff --git a/docs/en/commands/context/get-contexts.md b/docs/en/commands/context/get-contexts.md index fa94f5334..9867c8fd5 100644 --- a/docs/en/commands/context/get-contexts.md +++ b/docs/en/commands/context/get-contexts.md @@ -45,7 +45,11 @@ $contexts = $driver->contexts(); ```csharp // C# -// TODO C# sample +List AllContexts = new List(); + foreach (var context in (driver.Contexts)) + { + AllContexts.Add(context); + } ``` diff --git a/docs/en/commands/context/set-context.md b/docs/en/commands/context/set-context.md index 74afac281..6a7f8123c 100644 --- a/docs/en/commands/context/set-context.md +++ b/docs/en/commands/context/set-context.md @@ -66,7 +66,15 @@ $driver->context('NATIVE_APP'); ```csharp // C# -// TODO C# sample +// Switch to specific webview + List AllContexts = new List(); + foreach (var context in (driver.Contexts)) + { + AllContexts.Add(context); + } + driver.Context = (AllContexts[1]); + // Switch to NATIVE_APP + driver.Context = ("NATIVE_APP"); ``` diff --git a/docs/en/commands/interactions/touch/move.md b/docs/en/commands/interactions/touch/move.md index 8158731d5..737fe7f42 100644 --- a/docs/en/commands/interactions/touch/move.md +++ b/docs/en/commands/interactions/touch/move.md @@ -1,5 +1,5 @@ [//]: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/interactions/touch/move.yml) -# Move +# Move To Finger move on the screen [//]: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/interactions/touch/move.yml) @@ -9,7 +9,7 @@ Finger move on the screen // Java TouchActions action = new TouchActions(driver); action.down(10, 10); -action.move(50, 50); +action.moveTo(50, 50); action.perform(); ``` @@ -20,7 +20,7 @@ from appium.webdriver.common.touch_action import TouchAction # ... actions = TouchAction(driver) actions.tap_and_hold(element) -actions.move(50, 50) +actions.move_to(element, 50, 50) actions.perform() ``` @@ -46,10 +46,10 @@ await action.perform(); ```ruby # Ruby # ruby_lib example -touch_action.down(element).move().perform +touch_action.down(element).move_to().perform # ruby_lib_core example -@driver.touch_action.down(element).move().perform +@driver.touch_action.down(element).move_to().perform ```