Skip to content

Commit 7a1ceed

Browse files
Karan Nagpalfrancisf
authored andcommitted
Changes for Selenium 4 support
1 parent da6fa2c commit 7a1ceed

3 files changed

Lines changed: 61 additions & 60 deletions

File tree

src/test/local/codecept.conf.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,27 @@ exports.config = {
1313
user: BROWSERSTACK_USERNAME,
1414
key: BROWSERSTACK_ACCESS_KEY,
1515
browser: 'chrome',
16-
//Mentioned below are the capabilities based on JSON Wire Protocol
16+
// For W3C-based scripts, use the following capabilties:
1717
capabilities: {
18-
"os": "Windows",
19-
"os_version": "10",
20-
"browser_version": "latest",
21-
"browserstack.local": "true",
22-
"project": "Codecept + WebdriverIO",
23-
"build": "Local_Execution",
24-
"name": "Local Test",
18+
"bstack:options" : {
19+
"os": "Windows",
20+
"osVersion": "10",
21+
"local": "true",
22+
"projectName": "Codecept + WebdriverIO",
23+
"buildName": "Local_Execution",
24+
"sessionName": "Local Test",
25+
},
26+
"browserVersion": "latest",
2527
}
26-
//For W3C-based scripts, use the following capabilties:
28+
// Mentioned below are the capabilities based on JSON Wire Protocol
2729
// capabilities: {
28-
// "bstack:options" : {
29-
// "os": "Windows",
30-
// "osVersion": "10",
31-
// "local": "true",
32-
// "projectName": "Codecept + WebdriverIO",
33-
// "buildName": "Local_Execution",
34-
// "sessionName": "Local Test",
35-
// },
36-
// "browserVersion": "latest",
30+
// "os": "Windows",
31+
// "os_version": "10",
32+
// "browser_version": "latest",
33+
// "browserstack.local": "true",
34+
// "project": "Codecept + WebdriverIO",
35+
// "build": "Local_Execution",
36+
// "name": "Local Test",
3737
// }
3838
}
3939
},

src/test/parallel/codecept.conf.js

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,21 @@ exports.config = {
2121
browsers: [
2222
{
2323
browser: "Safari",
24+
//For W3C-based scripts, use the following capabilties:
25+
desiredCapabilities: {
26+
"bstack:options" : {
27+
"os": "OS X",
28+
"osVersion": "Catalina",
29+
"projectName": "Codecept + WebdriverIO",
30+
"buildName": "Parallel_Execution",
31+
"sessionName": "Parallel Test Safari",
32+
"debug" : "true",
33+
"networkLogs" : "true",
34+
},
35+
"browserVersion": "latest",
36+
},
2437
//Mentioned below are the capabilities based on JSON Wire Protocol
38+
/*
2539
desiredCapabilities: {
2640
"os": "OS X",
2741
"os_version": "Catalina",
@@ -32,26 +46,26 @@ exports.config = {
3246
"browserstack.debug": "true",
3347
'browserstack.networkLogs': 'true',
3448
},
35-
//For W3C-based scripts, use the following capabilties:
36-
/*
37-
desiredCapabilities: {
38-
"bstack:options" : {
39-
"os": "OS X",
40-
"osVersion": "Catalina",
41-
"projectName": "Codecept + WebdriverIO",
42-
"buildName": "Parallel_Execution",
43-
"sessionName": "Parallel Test Safari",
44-
"debug" : "true",
45-
"networkLogs" : "true",
46-
},
47-
"browserVersion": "latest",
48-
},
4949
*/
5050
},
5151

5252
{
5353
browser: "Firefox",
54+
//For W3C-based scripts, use the following capabilties:
55+
desiredCapabilities: {
56+
"bstack:options" : {
57+
"os": "Windows",
58+
"osVersion": "10",
59+
"projectName": "Codecept + WebdriverIO",
60+
"buildName": "Parallel_Execution",
61+
"sessionName": "Parallel Test Firefox",
62+
"debug" : "true",
63+
"networkLogs" : "true",
64+
},
65+
"browserVersion": "latest",
66+
},
5467
//Mentioned below are the capabilities based on JSON Wire Protocol
68+
/*
5569
desiredCapabilities: {
5670
"os": "Windows",
5771
"os_version": "10",
@@ -62,20 +76,6 @@ exports.config = {
6276
"browserstack.debug": "true",
6377
'browserstack.networkLogs': 'true',
6478
},
65-
//For W3C-based scripts, use the following capabilties:
66-
/*
67-
desiredCapabilities: {
68-
"bstack:options" : {
69-
"os": "Windows",
70-
"osVersion": "10",
71-
"projectName": "Codecept + WebdriverIO",
72-
"buildName": "Parallel_Execution",
73-
"sessionName": "Parallel Test Firefox",
74-
"debug" : "true",
75-
"networkLogs" : "true",
76-
},
77-
"browserVersion": "latest",
78-
},
7979
*/
8080
},
8181
],

src/test/single/codecept.conf.js

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,22 @@ exports.config = {
1111
user: BROWSERSTACK_USERNAME,
1212
key: BROWSERSTACK_ACCESS_KEY,
1313
browser: 'Edge',
14+
//For W3C-based scripts, use the following capabilties:
15+
capabilities: {
16+
"bstack:options" : {
17+
"os": "Windows",
18+
"osVersion": "10",
19+
"projectName": "Codecept + WebdriverIO",
20+
"buildName": "Single_Execution",
21+
"sessionName": "Single Test Edge",
22+
"debug" : "true",
23+
"networkLogs" : "true",
24+
},
25+
"browserVersion": "latest",
26+
}
27+
1428
//Mentioned below are the capabilities based on JSON Wire Protocol
29+
/*
1530
capabilities: {
1631
"os": "Windows",
1732
"os_version": "10",
@@ -22,20 +37,6 @@ exports.config = {
2237
"browserstack.debug": "true",
2338
'browserstack.networkLogs': 'true',
2439
}
25-
//For W3C-based scripts, use the following capabilties:
26-
/*
27-
capabilities: {
28-
"bstack:options" : {
29-
"os": "Windows",
30-
"osVersion": "10",
31-
"projectName": "Codecept + WebdriverIO",
32-
"buildName": "Single_Execution",
33-
"sessionName": "Single Test Edge",
34-
"debug" : "true",
35-
"networkLogs" : "true",
36-
},
37-
"browserVersion": "latest",
38-
}
3940
*/
4041
}
4142
},

0 commit comments

Comments
 (0)