Skip to content

Commit

Permalink
udpate the ts examples
Browse files Browse the repository at this point in the history
  • Loading branch information
bahrimootaz committed Jul 11, 2024
1 parent c05ab96 commit b54d951
Showing 1 changed file with 28 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,39 +220,41 @@ values={[

<!-- prettier-ignore -->
```ts
const 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'
}
}
const capabilities = [
{
platformName: 'Android',
'appium:deviceName': process.env.DEVICE_NAME || 'Google Pixel.*',
'appium:automationName': 'FlutterIntegration',
'appium:app': 'storage:filename=sl_my_demo_flutter_app.apk',
'appium:newCommandTimeout': 240,
'sauce:options': {
name: "1st AppiumFlutterIntegrationDriver test using appium latest",
appiumVersion: "appium2-20240701"
},
}
],
```

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

<!-- prettier-ignore -->
```ts
const 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'
}
}
const capabilities = [
{
platformName: 'iOS',
'appium:deviceName': process.env.DEVICE_NAME || 'iPhone.*',
'appium:automationName': 'FlutterIntegration',
'appium:app': 'storage:filename=sl_my_demo_flutter_app.ipa',
'appium:newCommandTimeout': 240,
'appium:platformVersion': '^1(4.[3-9]|[5-9]).*',
'sauce:options': {
name: "1st AppiumFlutterIntegrationDriver test using appium latest",
resigningEnabled: true,
appiumVersion: "appium2-20240701",
},
}
],
```

</TabItem>
Expand Down

0 comments on commit b54d951

Please sign in to comment.