Update generated docs (#12357)

This commit is contained in:
Appium Triager
2019-03-21 14:05:03 +09:00
committed by Kazuaki Matsuo
parent 786b14567e
commit e7d391b8d9
4 changed files with 20 additions and 8 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ $context = $driver->context();
```csharp
// C#
// TODO C# sample
string Context = driver.Context;
```
+5 -1
View File
@@ -45,7 +45,11 @@ $contexts = $driver->contexts();
```csharp
// C#
// TODO C# sample
List<string> AllContexts = new List<string>();
foreach (var context in (driver.Contexts))
{
AllContexts.Add(context);
}
```
+9 -1
View File
@@ -66,7 +66,15 @@ $driver->context('NATIVE_APP');
```csharp
// C#
// TODO C# sample
// Switch to specific webview
List<string> AllContexts = new List<string>();
foreach (var context in (driver.Contexts))
{
AllContexts.Add(context);
}
driver.Context = (AllContexts[1]);
// Switch to NATIVE_APP
driver.Context = ("NATIVE_APP");
```
+5 -5
View File
@@ -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
```