mirror of
https://github.com/appium/appium.git
synced 2026-10-26 10:47:45 +08:00
Update generated docs (#12357)
This commit is contained in:
committed by
Kazuaki Matsuo
parent
786b14567e
commit
e7d391b8d9
@@ -46,7 +46,7 @@ $context = $driver->context();
|
||||
|
||||
```csharp
|
||||
// C#
|
||||
// TODO C# sample
|
||||
string Context = driver.Context;
|
||||
|
||||
```
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
```
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user