Skip to content

Commit

Permalink
keep Java example and node.js examples
Browse files Browse the repository at this point in the history
  • Loading branch information
bahrimootaz committed Jul 11, 2024
1 parent 81356e7 commit 8f0184d
Showing 1 changed file with 1 addition and 164 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,10 @@ defaultValue="java"
values={[
{label: 'Java', value: 'java'},
{label: 'Node.js', value: 'js'},
{label: 'Python', value: 'python'},
{label: 'Ruby', value: 'ruby'},
{label: 'C#', value: 'csharp'},
]}>

<TabItem value="java">
<Tabs
groupId="capability-java"
<Tabs groupId="capability-java"
defaultValue="android"
values={[
{label: 'Android', value: 'android'},
Expand Down Expand Up @@ -259,164 +255,5 @@ const capabilities = {

</TabItem>
</Tabs>

</TabItem>
<TabItem value="python">

<Tabs
groupId="capability-python"
defaultValue="android"
values={[
{label: 'Android', value: 'android'},
{label: 'iOS', value: 'ios'},
]}>
<TabItem value="android">

<!-- prettier-ignore -->
```py
capabilities = {
"platformName" : "android",
# W3C Protocol is mandatory for Appium 2
"appium:platformVersion" : "12",
"appium:deviceName" : "Google Pixel 6",
# Mandatory for Appium 2
'appium:automationName': 'FlutterIntegration',
'appium:app': 'storage:filename=sl_my_demo_flutter_app.apk',
"sauce:options" : {
# appiumVersion is mandatory to use Appium 2 on Sauce Labs
"appiumVersion" : "appium-20240701"
}
}
```

</TabItem>
<TabItem value="ios">

<!-- prettier-ignore -->
```py
capabilities = {
"platformName" : "ios",
# W3C Protocol is mandatory for Appium 2
"appium:platformVersion" : "16",
"appium:deviceName" : "iPhone 14",
# Mandatory for Appium 2
'appium:automationName': 'FlutterIntegration',
'appium:app': 'storage:filename=sl_my_demo_flutter_app.ipa',
"sauce:options" : {
# appiumVersion is mandatory to use Appium 2 on Sauce Labs
"appiumVersion" : "appium-20240701"
}
}
```

</TabItem>
</Tabs>

</TabItem>
<TabItem value="ruby">

<Tabs
groupId="capability-ruby"
defaultValue="android"
values={[
{label: 'Android', value: 'android'},
{label: 'iOS', value: 'ios'},
]}>
<TabItem value="android">

<!-- prettier-ignore -->
```ruby
capabilities = {
"platformName" => "android",
# W3C Protocol is mandatory for Appium 2
"appium:platformVersion" => "12",
"appium:deviceName" => "Google Pixel 6",
# Mandatory for Appium 2
'appium:automationName' => 'flutter',
'appium:app' => 'storage:filename=sl_my_demo_flutter_app.apk',
"sauce:options" => {
# appiumVersion is mandatory to use Appium 2 on Sauce Labs
"appiumVersion" => "appium-20240701"
}
}
```

</TabItem>
<TabItem value="ios">

<!-- prettier-ignore -->
```ruby
capabilities = {
"platformName" => "ios",
# W3C Protocol is mandatory for Appium 2
"appium:platformVersion" => "16",
"appium:deviceName" => "iPhone 14",
# Mandatory for Appium 2
'appium:automationName'=> 'flutter',
'appium:app' => 'storage:filename=sl_my_demo_flutter_app.ipa',
"sauce:options" => {
# appiumVersion is mandatory to use Appium 2 on Sauce Labs
"appiumVersion" => "appium-20240701"
}
}
```

</TabItem>
</Tabs>

</TabItem>
<TabItem value="csharp">

<Tabs
groupId="capability-csharp"
defaultValue="android"
values={[
{label: 'Android', value: 'android'},
{label: 'iOS', value: 'ios'},
]}>
<TabItem value="android">

<!-- prettier-ignore -->
```csharp
AppiumOptions capabilities = new AppiumOptions();
capabilities.AddAdditionalCapability("platformName", "android");
// W3C Protocol is mandatory for Appium 2
capabilities.AddAdditionalCapability("appium:platformVersion", "12");
capabilities.AddAdditionalCapability("appium:deviceName", "Google Pixel 6");
// Mandatory for Appium 2
capabilities.AddAdditionalCapability("appium:automationName", "FlutterIntegration");
capabilities.AddAdditionalCapability("appium:app", "storage:filename=sl_my_demo_flutter_app.apk");
HashMap<String, Object> sauceOptions = new Dictionary<string, object>();
// appiumVersion is mandatory to use Appium 2 on Sauce Labs
sauceOptions.Add("appiumVersion", "appium-20240701");
capabilities.AddAdditionalCapability("sauce:options", sauceOptions);
```

</TabItem>
<TabItem value="ios">

<!-- prettier-ignore -->
```csharp
AppiumOptions capabilities = new AppiumOptions();
capabilities.AddAdditionalCapability("platformName", "ios");
// W3C Protocol is mandatory for Appium 2
capabilities.AddAdditionalCapability("appium:platformVersion", "16");
capabilities.AddAdditionalCapability("appium:deviceName", "iPhone 14");
// Mandatory for Appium 2
capabilities.AddAdditionalCapability("appium:automationName", "FlutterIntegration");
capabilities.AddAdditionalCapability("appium:app", "storage:filename=sl_my_demo_flutter_app.ipa");
HashMap<String, Object> sauceOptions = new Dictionary<string, object>();
// appiumVersion is mandatory to use Appium 2 on Sauce Labs
sauceOptions.Add("appiumVersion", "appium-20240701");
capabilities.AddAdditionalCapability("sauce:options", sauceOptions);
```

</TabItem>
</Tabs>

</TabItem>
</Tabs>

0 comments on commit 8f0184d

Please sign in to comment.