Skip to content

[πŸ› Bug]: Failed to build driver for chrome [πŸ› Bug]:Β #15214

@ADAS-Ash

Description

@ADAS-Ash

What happened?

Code created in Selenium IDE. Trying to use locally using command line after installing node, npm, selenium-side-runner and chrome driver.

C:\Users\Ash\Downloads\0201Parking>npm install node

added 2 packages, and audited 20 packages in 22s

1 package is looking for funding
run npm fund for details

found 0 vulnerabilities

C:\Users\Ash\Downloads\0201Parking>npm install -g selenium-side-runner
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported

changed 370 packages in 31s

45 packages are looking for funding
run npm fund for details

C:\Users\Ash\Downloads\0201Parking>npm install -g chromedriver

changed 60 packages in 7s

2 packages are looking for funding
run npm fund for details

C:\Users\Ash\Downloads\0201Parking>selenium-side-runner -X C:\Users\Ash\Downloads\0201Parking\0201StParking.side
console.log
Beginning test session

  at Object.<anonymous>.exports.default (src/connect.ts:9:11)

console.info
Building driver for chrome

  at WebDriverExecutor.getDriverSync (node_modules/@seleniumhq/side-runtime/src/webdriver.ts:172:14)

console.info
Driver attributes:{ capabilities: {}, server: '', browserName: 'chrome' }

  at WebDriverExecutor.getDriverSync (node_modules/@seleniumhq/side-runtime/src/webdriver.ts:173:14)

console.error

          Failed to build driver for chrome
          Supplied capabilities: {}
          Server: none
          Error: Error: Driver took too long to build. This is likely an issue with the browser or driver.

          OS: win32
          Node: v22.13.0
          Selenium-Webdriver: 4.28.1

          This is breaking at the boundary of the following code in selenium-webdriver:

          // BEGIN SELENIUM-WEBDRIVER CODE
          const webdriver = require('selenium-webdriver')
          const driver = new webdriver.Builder().withCapabilities({}).forBrowser('chrome').build()
          // END SELENIUM-WEBDRIVER CODE

          To ensure the bug is in selenium IDE, please attempt to run the above code in a script or node REPL.
          You may have to npm install selenium-webdriver first.

          If you are unable to proceed further, please raise a bug here:
          https://github.com/SeleniumHQ/selenium/issues/new?assignees=&labels=I-defect%2Cneeds-triaging&projects=&template=bug-report.yml&title=%5B%F0%9F%90%9B+Bug%5D%3A+

          If this code works in selenium-webdriver, but not the IDE or side-runner, please raise a bug here:
          https://github.com/SeleniumHQ/selenium-ide/issues/new?assignees=&labels=&projects=&template=bug.md


  at WebDriverExecutor.getDriver (node_modules/@seleniumhq/side-runtime/src/webdriver.ts:216:17)
  at WebDriverExecutor.init (node_modules/@seleniumhq/side-runtime/src/webdriver.ts:259:21)
  at Object.<anonymous>.exports.default (src/connect.ts:10:3)
  at Object.<anonymous> (src/main.test.ts:130:5)

FAIL ../../AppData/Roaming/npm/node_modules/selenium-side-runner/dist/main.test.js (30.881 s)
Γ— Testing driver connection (30061 ms)

● Testing driver connection

Driver took too long to build. This is likely an issue with the browser or driver.

  at Timeout._onTimeout (node_modules/@seleniumhq/side-runtime/src/webdriver.ts:200:13)

Test Suites: 1 failed, 1 total
Tests: 1 failed, 1 total
Snapshots: 0 total
Time: 30.97 s, estimated 31 s
Ran all test suites within paths "C:\Users\Ash\AppData\Roaming\npm\node_modules\selenium-side-runner\dist\main.test.js".

How can we reproduce the issue?

{
  "id": "686fe98e-4742-4a9e-b56d-502dce5e376d",
  "version": "2.0",
  "name": "StParking",
  "url": "https://unityplace.aeroparker.com/book/",
  "tests": [{
    "id": "39b24ef5-b610-4ae3-aa1f-f32311bb1956",
    "name": "TestCase-ID",
    "commands": [{
      "id": "3488758d-dfc3-4cf2-8535-537663667d5a",
      "comment": "",
      "command": "open",
      "target": "Santander/Parking",
      "targets": [],
      "value": ""
    }, {
      "id": "ef5290a3-7d20-49cb-8379-114c95f2fb9a",
      "comment": "",
      "command": "setWindowSize",
      "target": "874x1032",
      "targets": [],
      "value": ""
    }, {
      "id": "77f19c52-a0c8-41e6-ba1e-b3b9dbb01672",
      "comment": "",
      "command": "click",
      "target": "id=changeEntryDate",
      "targets": [
        ["id=changeEntryDate", "id"],
        ["name=entryDate", "name"],
        ["css=#changeEntryDate", "css:finder"],
        ["xpath=//input[@id='changeEntryDate']", "xpath:attributes"],
        ["xpath=//div[@id='editEntryDate']/input", "xpath:idRelative"],
        ["xpath=//div/input", "xpath:position"]
      ],
      "value": ""
    }, {
      "id": "858884f4-291e-41a8-b2d3-fb40fb8dace8",
      "comment": "",
      "command": "click",
      "target": "css=tr:nth-child(2) > .day:nth-child(1)",
      "targets": [
        ["css=tr:nth-child(4) > .day:nth-child(3)", "css:finder"],
        ["xpath=//tr[4]/td[3]", "xpath:position"],
        ["xpath=//td[contains(.,'21')]", "xpath:innerText"]
      ],
      "value": ""
    }, {
      "id": "f4f9c5e1-8632-42db-ba9d-0b5ea0489493",
      "comment": "",
      "command": "select",
      "target": "id=changeEntryTime",
      "targets": [],
      "value": "06:00"
    }, {
      "id": "11625a4d-62c0-4ea1-9812-bf04c1727560",
      "comment": "",
      "command": "click",
      "target": "id=changeExitDate",
      "targets": [
        ["id=changeEntryDate", "id"],
        ["name=entryDate", "name"],
        ["css=#changeEntryDate", "css:finder"],
        ["xpath=//input[@id='changeEntryDate']", "xpath:attributes"],
        ["xpath=//div[@id='editEntryDate']/input", "xpath:idRelative"],
        ["xpath=//div/input", "xpath:position"]
      ],
      "value": ""
    }, {
      "id": "b3a80ddb-ed9b-4516-97b9-2ebe72dea1b6",
      "comment": "",
      "command": "click",
      "target": "css=tr:nth-child(2) > .day:nth-child(1)",
      "targets": [
        ["css=tr:nth-child(4) > .day:nth-child(2)", "css:finder"],
        ["xpath=//tr[4]/td[2]", "xpath:position"],
        ["xpath=//td[contains(.,'20')]", "xpath:innerText"]
      ],
      "value": ""
    }, {
      "id": "4064f78e-4068-4837-9fbf-407ba95dbea4",
      "comment": "",
      "command": "select",
      "target": "id=changeExitTime",
      "targets": [],
      "value": "label=12:30"
    }, {
      "id": "c7bb3269-9fd8-4144-b02f-4eaa17b158a2",
      "comment": "",
      "command": "click",
      "target": "css=.btn-desktop",
      "targets": [
        ["css=.btn-desktop", "css:finder"],
        ["xpath=//input[@value='Book now']", "xpath:attributes"],
        ["xpath=//form[@id='changeDate']/div[3]/input", "xpath:idRelative"],
        ["xpath=//div[3]/input", "xpath:position"]
      ],
      "value": ""
    }, {
      "id": "940152be-319d-4d62-9964-5bff76d58349",
      "comment": "",
      "command": "click",
      "target": "xpath=//a[contains(@href, '?parkingCmd=selectProduct&cmd=selectProduct&selectProductSubmitted=1&pid=413')]",
      "targets": [
        ["linkText=Book now", "linkText"],
        ["css=.container:nth-child(1) .product-group__item-container:nth-child(1) .btn:nth-child(1)", "css:finder"],
        ["xpath=//a[contains(text(),'Book now')]", "xpath:link"],
        ["xpath=//div[@id='gridProducts']/div/div/div/div/div/div[3]/div/div/div[2]/div[3]/a", "xpath:idRelative"],
        ["xpath=//a[contains(@href, '?parkingCmd=selectProduct&cmd=selectProduct&selectProductSubmitted=1&pid=413')]", "xpath:href"],
        ["xpath=//div[3]/a", "xpath:position"],
        ["xpath=//a[contains(.,'Book now')]", "xpath:innerText"]
      ],
      "value": ""
    }, {
      "id": "1285619a-7237-49fb-a2c4-bef37d1d2942",
      "comment": "",
      "command": "//click",
      "target": "linkText=Book now",
      "targets": [],
      "value": ""
    }, {
      "id": "3473cc73-ca04-4a57-ad19-05ac649d350b",
      "comment": "",
      "command": "type",
      "target": "id=firstName",
      "targets": [
        ["id=firstName", "id"],
        ["name=fname", "name"],
        ["css=#firstName", "css:finder"],
        ["xpath=//input[@id='firstName']", "xpath:attributes"],
        ["xpath=//div[@id='personalDetails']/div[2]/div/div/div/input", "xpath:idRelative"],
        ["xpath=//div[2]/div/div/div/input", "xpath:position"]
      ],
      "value": "Firstname"
    }, {
      "id": "cac7e2d2-fb9a-40c3-a3df-348a6553b597",
      "comment": "",
      "command": "type",
      "target": "id=lastName",
      "targets": [
        ["id=lastName", "id"],
        ["name=lname", "name"],
        ["css=#lastName", "css:finder"],
        ["xpath=//input[@id='lastName']", "xpath:attributes"],
        ["xpath=//div[@id='personalDetails']/div[2]/div/div/div[2]/input", "xpath:idRelative"],
        ["xpath=//div[2]/div/div/div[2]/input", "xpath:position"]
      ],
      "value": "Surname"
    }, {
      "id": "527d9cb6-e8b9-490f-87f6-0a8a0fdd214c",
      "comment": "",
      "command": "type",
      "target": "id=email",
      "targets": [
        ["id=email", "id"],
        ["name=email", "name"],
        ["css=#email", "css:finder"],
        ["xpath=//input[@id='email']", "xpath:attributes"],
        ["xpath=//div[@id='personalDetails']/div[2]/div/div[2]/div/input", "xpath:idRelative"],
        ["xpath=//div[2]/div/div[2]/div/input", "xpath:position"]
      ],
      "value": "[email protected]"
    }, {
      "id": "35f72cb7-9797-44e2-92a8-01bfc16632b5",
      "comment": "",
      "command": "type",
      "target": "id=registration",
      "targets": [
        ["id=registration", "id"],
        ["name=carreg", "name"],
        ["css=#registration", "css:finder"],
        ["xpath=//input[@id='registration']", "xpath:attributes"],
        ["xpath=//div[@id='vehicleDetails']/div[2]/div/div[2]/input", "xpath:idRelative"],
        ["xpath=//div[2]/div/div[2]/input", "xpath:position"]
      ],
      "value": "AA11ZXY"
    }, {
      "id": "37c4ac8f-5aa9-4067-8da1-3c1ec2b1f5c9",
      "comment": "",
      "command": "click",
      "target": "id=terms",
      "targets": [],
      "value": ""
    }]
  }],
  "suites": [{
    "id": "8e2c97af-307e-438a-bbcb-90f146fddd04",
    "name": "Default Suite",
    "persistSession": false,
    "parallel": false,
    "timeout": 300,
    "tests": ["39b24ef5-b610-4ae3-aa1f-f32311bb1956"]
  }],
  "urls": ["https://unityplace.aeroparker.com/", "https://unityplace.aeroparker.com/book/Santander/Parking?parkingCmd=selectProduct", "https://unityplace.aeroparker.com/book/Santander/Parking?parkingCmd=collectParkingDetails", "https://unityplace.aeroparker.com/book/Santander/Parking", "https://unityplace.aeroparker.com/book/"],
  "plugins": []
}

Relevant log output

Failed to build driver for chrome
              Supplied capabilities: {}
              Server: none
              Error: Error: Driver took too long to build. This is likely an issue with the browser or driver.

              OS: win32
              Node: v22.13.0
              Selenium-Webdriver: 4.28.1

              This is breaking at the boundary of the following code in selenium-webdriver:

              // BEGIN SELENIUM-WEBDRIVER CODE
              const webdriver = require('selenium-webdriver')
              const driver = new webdriver.Builder().withCapabilities({}).forBrowser('chrome').build()
              // END SELENIUM-WEBDRIVER CODE

              To ensure the bug is in selenium IDE, please attempt to run the above code in a script or node REPL.
              You may have to npm install selenium-webdriver first.

Operating System

Windows 11 Pro

Selenium version

Selenium IDE Latest

What are the browser(s) and version(s) where you see this issue?

Chrome Version 132.0.6834.84 (Official Build) (64-bit)

What are the browser driver(s) and version(s) where you see this issue?

132.0.6834.159 (2d77d3fc4452661469b78f115e0aed4d71269739-refs/branch-heads/6834@{#4408})

Are you using Selenium Grid?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs-triagingA Selenium member will evaluate this soon!I-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions