Skip to content

Commit 1eca734

Browse files
Merge pull request #26 from webdriverio/test/update-w3c-caps
feat: update to w3c capabilities
2 parents da30402 + b26ea8c commit 1eca734

10 files changed

+58
-11596
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ npm-debug.log
1515
apps/
1616
*.log
1717
chromeDriver
18+
19+
package-lock.json

config/saucelabs/wdio.ios.rdc.app.conf.js

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ config.specs = [
1414
// http://appium.io/docs/en/writing-running-appium/caps/#general-capabilities
1515
config.capabilities = [
1616
{
17+
automationName: 'XCUITest',
1718
deviceName: 'iPhone X*',
1819
// The reference to the app
1920
testobject_app_id: '3',

config/wdio.android.app.conf.js

+13-7
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,23 @@ config.specs = [
1616
config.capabilities = [
1717
{
1818
// The defaults you need to have in your config
19-
automationName: 'UiAutomator2',
20-
deviceName: 'Pixel_8.1',
2119
platformName: 'Android',
22-
platformVersion: '8.1',
23-
orientation: 'PORTRAIT',
2420
maxInstances: 1,
25-
app: join(process.cwd(), './apps/Android-NativeDemoApp-0.2.1.apk'),
21+
// For W3C the appium capabilities need to have an extension prefix
22+
// http://appium.io/docs/en/writing-running-appium/caps/
23+
// This is `appium:` for all Appium Capabilities which can be found here
24+
'appium:deviceName': 'Pixel_8.1',
25+
'appium:platformVersion': '8.1',
26+
'appium:orientation': 'PORTRAIT',
27+
// `automationName` will be manatory, see
28+
// https://github.com/appium/appium/releases/tag/v1.13.0
29+
'appium:automationName': 'UiAutomator2',
30+
// The path to the app
31+
'appium:app': join(process.cwd(), './apps/Android-NativeDemoApp-0.2.1.apk'),
2632
// Read the reset strategies very well, they differ per platform, see
2733
// http://appium.io/docs/en/writing-running-appium/other/reset-strategies/
28-
noReset: true,
29-
newCommandTimeout: 240,
34+
'appium:noReset': true,
35+
'appium:newCommandTimeout': 240,
3036
},
3137
];
3238

config/wdio.android.browser.conf.js

+14-7
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,24 @@ config.specs = [
1515
config.capabilities = [
1616
{
1717
// The defaults you need to have in your config
18-
automationName: 'UiAutomator2',
19-
deviceName: 'Pixel_8.1',
2018
platformName: 'Android',
21-
platformVersion: '8.1',
22-
maxInstances: 1,
2319
browserName: 'chrome',
24-
// Add this option to prevent the annoying "Welcome"-message
25-
chromeOptions: {
20+
maxInstances: 1,
21+
// For W3C the appium capabilities need to have an extension prefix
22+
// http://appium.io/docs/en/writing-running-appium/caps/
23+
// This is `appium:` for all Appium Capabilities which can be found here
24+
'appium:deviceName': 'Pixel_8.1',
25+
'appium:platformVersion': '8.1',
26+
'appium:orientation': 'PORTRAIT',
27+
// `automationName` will be manatory, see
28+
// https://github.com/appium/appium/releases/tag/v1.13.0
29+
'appium:automationName': 'UiAutomator2',
30+
'appium:newCommandTimeout': 240,
31+
'goog:chromeOptions': {
32+
w3c: true,
33+
// Add this option to prevent the annoying "Welcome"-message
2634
args: [ '--no-first-run' ],
2735
},
28-
newCommandTimeout: 240,
2936
},
3037
];
3138

config/wdio.ios.app.conf.js

+12-6
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,23 @@ config.specs = [
1616
config.capabilities = [
1717
{
1818
// The defaults you need to have in your config
19-
deviceName: 'iPhone X',
2019
platformName: 'iOS',
21-
platformVersion: '12.2',
22-
orientation: 'PORTRAIT',
2320
maxInstances: 1,
21+
// For W3C the appium capabilities need to have an extension prefix
22+
// This is `appium:` for all Appium Capabilities which can be found here
23+
// http://appium.io/docs/en/writing-running-appium/caps/
24+
'appium:deviceName': 'iPhone X',
25+
'appium:platformVersion': '12.2',
26+
'appium:orientation': 'PORTRAIT',
27+
// `automationName` will be manatory, see
28+
// https://github.com/appium/appium/releases/tag/v1.13.0
29+
'appium:automationName': 'XCUITest',
2430
// The path to the app
25-
app: join(process.cwd(), './apps/iOS-Simulator-NativeDemoApp-0.2.1.app.zip'),
31+
'appium:app': join(process.cwd(), './apps/iOS-Simulator-NativeDemoApp-0.2.1.app.zip'),
2632
// Read the reset strategies very well, they differ per platform, see
2733
// http://appium.io/docs/en/writing-running-appium/other/reset-strategies/
28-
noReset: true,
29-
newCommandTimeout: 240,
34+
'appium:noReset': true,
35+
'appium:newCommandTimeout': 240,
3036
},
3137
];
3238

config/wdio.ios.browser.conf.js

+12-6
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,20 @@ config.specs = [
1515
config.capabilities = [
1616
{
1717
// The defaults you need to have in your config
18-
deviceName: 'iPhone X',
18+
browserName: 'safari',
1919
platformName: 'iOS',
20-
platformVersion: '12.1',
21-
orientation: 'PORTRAIT',
2220
maxInstances: 1,
23-
browserName: 'safari',
24-
newCommandTimeout: 240,
21+
// For W3C the appium capabilities need to have an extension prefix
22+
// This is `appium:` for all Appium Capabilities which can be found here
23+
// http://appium.io/docs/en/writing-running-appium/caps/
24+
'appium:deviceName': 'iPhone X',
25+
'appium:platformVersion': '12.2',
26+
'appium:orientation': 'PORTRAIT',
27+
// `automationName` will be manatory, see
28+
// https://github.com/appium/appium/releases/tag/v1.13.0
29+
'appium:automationName': 'XCUITest',
30+
'appium:newCommandTimeout': 240,
2531
},
26-
]
32+
];
2733

2834
exports.config = config;

0 commit comments

Comments
 (0)