Skip to content

Commit 400c742

Browse files
committed
Update chrome driver
1 parent 64eaa12 commit 400c742

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

.github/workflows/webdriver.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
node-version: [20.x]
2323

2424
steps:
25-
- run: docker run -d --net=host --shm-size=2g selenium/standalone-chrome:3.141.0
25+
- run: docker run -d --net=host --shm-size=2g selenium/standalone-chrome:4.26
2626
- uses: actions/checkout@v4
2727
- name: Use Node.js ${{ matrix.node-version }}
2828
uses: actions/setup-node@v4

test/helper/WebDriver_test.js

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,15 @@ describe('WebDriver', function () {
3535
wd = new WebDriver({
3636
url: siteUrl,
3737
browser: 'chrome',
38-
// windowSize: '500x700',
39-
// smartWait: 0, // just to try
38+
windowSize: '500x700',
39+
smartWait: 0, // just to try
4040
host: TestHelper.seleniumHost(),
4141
port: TestHelper.seleniumPort(),
42-
// waitForTimeout: 5000,
43-
webSocketUrl: false,
42+
waitForTimeout: 5000,
4443
capabilities: {
45-
/* chromeOptions: {
44+
chromeOptions: {
4645
args: ['--headless', '--disable-gpu', '--window-size=1280,1024'],
4746
},
48-
*/
4947
},
5048
customLocatorStrategies: {
5149
customSelector: (selector) => ({ 'element-6066-11e4-a52e-4f735466cecf': `${selector}-foobar` }),
@@ -1278,17 +1276,16 @@ describe('WebDriver - Basic Authentication', () => {
12781276
url: siteUrl,
12791277
basicAuth: { username: 'admin', password: 'admin' },
12801278
browser: 'chrome',
1281-
// windowSize: '500x700',
1279+
windowSize: '500x700',
12821280
remoteFileUpload: true,
1283-
// smartWait: 0, // just to try
1281+
smartWait: 0, // just to try
12841282
host: TestHelper.seleniumHost(),
12851283
port: TestHelper.seleniumPort(),
1286-
// waitForTimeout: 5000,
1284+
waitForTimeout: 5000,
12871285
capabilities: {
1288-
/* chromeOptions: {
1286+
chromeOptions: {
12891287
args: ['--headless', '--disable-gpu', '--window-size=1280,1024'],
12901288
},
1291-
*/
12921289
},
12931290
})
12941291
})

0 commit comments

Comments
 (0)