Update C# create.yml [ci skip]
C# sample is done.
MODIFY
commands-yml/commands/session/create.yml
commands-yml/commands/session/create.yml
@@ -75,7 +75,14 @@ example_usage:
// TODO PHP sample
csharp:
|
- // TODO C# sample
+ DesiredCapabilities capabilities = new DesiredCapabilities();
+ capabilities.SetCapability(MobileCapabilityType.PlatformName, "Android");
+ capabilities.SetCapability(MobileCapabilityType.PlatformVersion, "7.1.1");
+ capabilities.SetCapability(MobileCapabilityType.DeviceName, "Android Device");
+ capabilities.SetCapability("appPackage", "com.instagram.android");
+ capabilities.SetCapability("appActivity", "com.instagram.android.activity.MainTabActivity");
+
+ AndroidDriver<AndroidElement> driver = new AndroidDriver<AndroidElement>(new Uri("http://127.0.0.1:4723/wd/hub/"), capabilities);
client_docs:
java: "https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/remote/server/DefaultSession.html#createSession-org.openqa.selenium.remote.server.DriverFactory-org.openqa.selenium.remote.server.Clock-org.openqa.selenium.remote.SessionId-org.openqa.selenium.Capabilities-"

Update C# create.yml [ci skip] (#11659)

C# sample is done.