Skip to content

Commit

Permalink
Update chrome driver
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashohn committed Nov 15, 2024
1 parent 64eaa12 commit 400c742
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/webdriver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
node-version: [20.x]

steps:
- run: docker run -d --net=host --shm-size=2g selenium/standalone-chrome:3.141.0
- run: docker run -d --net=host --shm-size=2g selenium/standalone-chrome:4.26
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
Expand Down
19 changes: 8 additions & 11 deletions test/helper/WebDriver_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,15 @@ describe('WebDriver', function () {
wd = new WebDriver({
url: siteUrl,
browser: 'chrome',
// windowSize: '500x700',
// smartWait: 0, // just to try
windowSize: '500x700',
smartWait: 0, // just to try
host: TestHelper.seleniumHost(),
port: TestHelper.seleniumPort(),
// waitForTimeout: 5000,
webSocketUrl: false,
waitForTimeout: 5000,
capabilities: {
/* chromeOptions: {
chromeOptions: {
args: ['--headless', '--disable-gpu', '--window-size=1280,1024'],
},
*/
},
customLocatorStrategies: {
customSelector: (selector) => ({ 'element-6066-11e4-a52e-4f735466cecf': `${selector}-foobar` }),
Expand Down Expand Up @@ -1278,17 +1276,16 @@ describe('WebDriver - Basic Authentication', () => {
url: siteUrl,
basicAuth: { username: 'admin', password: 'admin' },
browser: 'chrome',
// windowSize: '500x700',
windowSize: '500x700',
remoteFileUpload: true,
// smartWait: 0, // just to try
smartWait: 0, // just to try
host: TestHelper.seleniumHost(),
port: TestHelper.seleniumPort(),
// waitForTimeout: 5000,
waitForTimeout: 5000,
capabilities: {
/* chromeOptions: {
chromeOptions: {
args: ['--headless', '--disable-gpu', '--window-size=1280,1024'],
},
*/
},
})
})
Expand Down

0 comments on commit 400c742

Please sign in to comment.