froth-webdriverio-framework 7.0.119-dev1.2 → 7.0.119-dev1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/froth_configs/local/web.config.js +14 -8
- package/package.json +52 -50
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
module.exports = (bsCaps) => {
|
|
2
2
|
const browserName = (bsCaps.browserName || 'chrome').toLowerCase();
|
|
3
3
|
|
|
4
|
-
// Map browser names to their
|
|
4
|
+
// Map browser names to their driver services (these packages auto-download drivers)
|
|
5
5
|
const browserServiceMap = {
|
|
6
6
|
chrome: 'chromedriver',
|
|
7
7
|
firefox: 'geckodriver',
|
|
8
8
|
edge: 'edgedriver',
|
|
9
|
+
safari: 'safaridriver',
|
|
9
10
|
ie: 'iedriver',
|
|
10
|
-
'internet explorer': 'iedriver'
|
|
11
|
-
safari: 'safaridriver'
|
|
11
|
+
'internet explorer': 'iedriver'
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
const service = browserServiceMap[browserName] || 'chromedriver';
|
|
15
15
|
|
|
16
16
|
const config = {
|
|
17
|
-
services: [service
|
|
17
|
+
services: [[service, {
|
|
18
|
+
// Driver will auto-download to node_modules/ (no admin needed)
|
|
19
|
+
// Drivers are cached locally after first download
|
|
20
|
+
}]]
|
|
18
21
|
};
|
|
19
22
|
|
|
20
23
|
// Add browser-specific capabilities
|
|
@@ -22,14 +25,14 @@ module.exports = (bsCaps) => {
|
|
|
22
25
|
config.capabilities = [{
|
|
23
26
|
browserName: 'chrome',
|
|
24
27
|
'goog:chromeOptions': {
|
|
25
|
-
|
|
28
|
+
args: ['--no-sandbox', '--disable-dev-shm-usage', '--disable-gpu']
|
|
26
29
|
}
|
|
27
30
|
}];
|
|
28
31
|
} else if (browserName === 'firefox') {
|
|
29
32
|
config.capabilities = [{
|
|
30
33
|
browserName: 'firefox',
|
|
31
34
|
'moz:firefoxOptions': {
|
|
32
|
-
|
|
35
|
+
args: ['-headless']
|
|
33
36
|
}
|
|
34
37
|
}];
|
|
35
38
|
} else if (browserName === 'edge') {
|
|
@@ -47,11 +50,14 @@ module.exports = (bsCaps) => {
|
|
|
47
50
|
} else {
|
|
48
51
|
// Default to Chrome for unsupported browsers
|
|
49
52
|
config.capabilities = [{
|
|
50
|
-
browserName: 'chrome'
|
|
53
|
+
browserName: 'chrome',
|
|
54
|
+
'goog:chromeOptions': {
|
|
55
|
+
args: ['--no-sandbox', '--disable-dev-shm-usage', '--disable-gpu']
|
|
56
|
+
}
|
|
51
57
|
}];
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
console.log(`🌐 Local execution configured for: ${browserName} using service: ${service}`);
|
|
55
61
|
|
|
56
62
|
return config;
|
|
57
|
-
};
|
|
63
|
+
};
|
package/package.json
CHANGED
|
@@ -1,51 +1,53 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "froth-webdriverio-framework",
|
|
3
|
+
"version": "7.0.119-dev1.4",
|
|
4
|
+
"readme": "WebdriverIO Integration",
|
|
5
|
+
"description": "WebdriverIO and BrowserStack App Automate",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"lint": "eslint ."
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/RoboticoDigitalProjects/froth-webdriverio.git"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"webdriverio",
|
|
16
|
+
"browserstack",
|
|
17
|
+
"appium"
|
|
18
|
+
],
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@wdio/appium-service": "9.23.0",
|
|
21
|
+
"@wdio/browserstack-service": "9.23.0",
|
|
22
|
+
"@wdio/cli": "9.23.0",
|
|
23
|
+
"@wdio/local-runner": "9.23.0",
|
|
24
|
+
"@wdio/mocha-framework": "9.23.0",
|
|
25
|
+
"@wdio/spec-reporter": "^9.20.0",
|
|
26
|
+
"appium": "^3.1.2",
|
|
27
|
+
"appium-uiautomator2-driver": "^6.7.8",
|
|
28
|
+
"assert": "^2.1.0",
|
|
29
|
+
"axios": "1.14.0",
|
|
30
|
+
"browserstack-local": "^1.5.8",
|
|
31
|
+
"chai": "^6.2.2",
|
|
32
|
+
"crypto-js": "^4.2.0",
|
|
33
|
+
"deepmerge": "^4.3.1",
|
|
34
|
+
"ejs": "^4.0.1",
|
|
35
|
+
"expect-webdriverio": "^4.13.0",
|
|
36
|
+
"express": "^5.2.1",
|
|
37
|
+
"form-data": "^4.0.5",
|
|
38
|
+
"fs": "^0.0.1-security",
|
|
39
|
+
"js-yaml": "^4.1.1",
|
|
40
|
+
"mysql2": "^3.16.0",
|
|
41
|
+
"node-fetch": "^3.3.2",
|
|
42
|
+
"node-localstorage": "^3.0.5",
|
|
43
|
+
"randexp": "^0.5.3",
|
|
44
|
+
"ts-node": "^10.9.2",
|
|
45
|
+
"typescript": "^5.9.3",
|
|
46
|
+
"vm": "^0.1.0",
|
|
47
|
+
"wdio-chromedriver-service": "^8.1.1",
|
|
48
|
+
"wdio-geckodriver-service": "^5.0.2",
|
|
49
|
+
"wdio-edgedriver-service": "^3.0.3",
|
|
50
|
+
"wdio-iedriver-service": "^0.1.0",
|
|
51
|
+
"wdio-safaridriver-service": "^2.1.1"
|
|
52
|
+
}
|
|
51
53
|
}
|