Open
Description
What happened?
Hi all,
On my Windows 10, I have Chrome browser Version 123.0.6312.123 (Official Build) (64-bit) with Selenium IDE extension installed.
I recorded a simple test like access to https://opensource-demo.orangehrmlive.com/ --> login --> logout , saved as test3.side
I can run test with Selenium IDE successfully.
I installed nodejs and npm
C:\Users\jack.chuong\Downloads>node -v
v20.12.2
C:\Users\jack.chuong\Downloads>npm -v
10.5.0
Then I use npm to install selenium-side-runner and chromedriver
C:\Users\jack.chuong\Downloads>selenium-side-runner --version
4.0.5
C:\Users\jack.chuong\Downloads>chromedriver --version
ChromeDriver 123.0.6312.105 (399174dbe6eff0f59de9a6096129c0c827002b3a-refs/branch-heads/6312@{#761})
When I tried to run test3.side with selenium-side-runner I got error as below
C:\Users\jack.chuong\Downloads>selenium-side-runner -X test3.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: v20.12.2
Selenium-Webdriver: 4.19.0
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 (31.04 s)
× Testing driver connection (30086 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: 31.16 s, estimated 32 s
Ran all test suites within paths "C:\Users\jack.chuong\AppData\Roaming\npm\node_modules\selenium-side-runner\dist\main.test.js".
How can we reproduce the issue?
{
"id": "5e433d3a-9418-4d87-80e9-7bc3ad30941e",
"version": "2.0",
"name": "test3",
"url": "https://opensource-demo.orangehrmlive.com",
"tests": [{
"id": "aa835abb-ebea-4643-82e2-03d0e1797faf",
"name": "test3",
"commands": [{
"id": "ed29e1d3-5e46-4101-8872-ce1ee4674383",
"comment": "",
"command": "open",
"target": "/web/index.php/auth/login",
"targets": [],
"value": ""
}, {
"id": "128b58cf-852f-4454-acc2-dcb383d17128",
"comment": "",
"command": "setWindowSize",
"target": "1366x728",
"targets": [],
"value": ""
}, {
"id": "4baa7371-2bdf-4400-801f-17e9c7471962",
"comment": "",
"command": "click",
"target": "name=username",
"targets": [
["name=username", "name"],
["css=.oxd-input--focus", "css:finder"],
["xpath=//input[@name='username']", "xpath:attributes"],
["xpath=//div[@id='app']/div/div/div/div/div[2]/div[2]/form/div/div/div[2]/input", "xpath:idRelative"],
["xpath=//div[2]/input", "xpath:position"]
],
"value": ""
}, {
"id": "86f17c96-705b-4014-b377-96a461b77aeb",
"comment": "",
"command": "type",
"target": "name=username",
"targets": [
["name=username", "name"],
["css=.oxd-input--focus", "css:finder"],
["xpath=//input[@name='username']", "xpath:attributes"],
["xpath=//div[@id='app']/div/div/div/div/div[2]/div[2]/form/div/div/div[2]/input", "xpath:idRelative"],
["xpath=//div[2]/input", "xpath:position"]
],
"value": "Admin"
}, {
"id": "40a05796-eb8e-4341-8b38-5c78593e4813",
"comment": "",
"command": "type",
"target": "name=password",
"targets": [
["name=password", "name"],
["css=.oxd-input--focus", "css:finder"],
["xpath=//input[@name='password']", "xpath:attributes"],
["xpath=//div[@id='app']/div/div/div/div/div[2]/div[2]/form/div[2]/div/div[2]/input", "xpath:idRelative"],
["xpath=//div[2]/div/div[2]/input", "xpath:position"]
],
"value": "admin123"
}, {
"id": "3fbe4fb0-d619-447a-9d6b-e13ef4e07688",
"comment": "",
"command": "click",
"target": "css=.oxd-button",
"targets": [
["css=.oxd-button", "css:finder"],
["xpath=//button[@type='submit']", "xpath:attributes"],
["xpath=//div[@id='app']/div/div/div/div/div[2]/div[2]/form/div[3]/button", "xpath:idRelative"],
["xpath=//button", "xpath:position"],
["xpath=//button[contains(.,'Login')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "d9e199da-2e2b-4f4f-b563-91ccfb1af453",
"comment": "",
"command": "click",
"target": "css=.oxd-userdropdown-name",
"targets": [
["css=.oxd-userdropdown-name", "css:finder"],
["xpath=//div[@id='app']/div/div/header/div/div[2]/ul/li/span/p", "xpath:idRelative"],
["xpath=//p", "xpath:position"],
["xpath=//p[contains(.,'First Last')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "5486f213-0339-4cf3-91ba-5e6868a8fb6a",
"comment": "",
"command": "click",
"target": "linkText=Logout",
"targets": [
["linkText=Logout", "linkText"],
["css=li:nth-child(4) > .oxd-userdropdown-link", "css:finder"],
["xpath=//a[contains(text(),'Logout')]", "xpath:link"],
["xpath=//div[@id='app']/div/div/header/div/div[2]/ul/li/ul/li[4]/a", "xpath:idRelative"],
["xpath=//a[contains(@href, '/web/index.php/auth/logout')]", "xpath:href"],
["xpath=//li/ul/li[4]/a", "xpath:position"],
["xpath=//a[contains(.,'Logout')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "e4056d12-d0bc-47c5-8b29-5f180c0dff61",
"comment": "",
"command": "close",
"target": "",
"targets": [],
"value": ""
}]
}],
"suites": [{
"id": "c341457c-b767-41e7-be85-aec02f650cf1",
"name": "Default Suite",
"persistSession": false,
"parallel": false,
"timeout": 300,
"tests": ["aa835abb-ebea-4643-82e2-03d0e1797faf"]
}],
"urls": ["https://opensource-demo.orangehrmlive.com/"],
"plugins": []
}
Relevant log output
C:\Users\jack.chuong\Downloads>selenium-side-runner -X test3.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: v20.12.2
Selenium-Webdriver: 4.19.0
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 (31.04 s)
× Testing driver connection (30086 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: 31.16 s, estimated 32 s
Ran all test suites within paths "C:\Users\jack.chuong\AppData\Roaming\npm\node_modules\selenium-side-runner\dist\main.test.js".
Operating System
Windows 10
Selenium version
Node: v20.12.2 Selenium-Webdriver: 4.19.0
What are the browser(s) and version(s) where you see this issue?
Chrome browser Version 123.0.6312.123 (Official Build) (64-bit)
What are the browser driver(s) and version(s) where you see this issue?
Version 123.0.6312.123 (Official Build) (64-bit)
Are you using Selenium Grid?
no