-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed
Labels
I-questionApplied to questions. Issues should be closed and send the user to community resources.Applied to questions. Issues should be closed and send the user to community resources.
Description
What happened?
I have another question. When creating an instance based on the driver, this program is called. Why does it sometimes get results quickly and sometimes slowly
selenium-manager.exe --browser chrome --language-binding javascript --output json
How can we reproduce the issue?
const {Browser, Builder, By, Key, until} = require('selenium-webdriver');
const chrome = require('selenium-webdriver/chrome');
const {getBinaryPaths} = require("selenium-webdriver/common/driverFinder");
async function getDriver(driverName = Browser.CHROME) {
try {
let options = new chrome.Options();
//options.setBrowserVersion("stable");
options.addArguments('--start-maximized');
let paths = getBinaryPaths(options)
console.log(paths)
let driverPath = paths.driverPath;
let browserPath = paths.browserPath;
options.setChromeBinaryPath(browserPath);
let service = new chrome.ServiceBuilder("D:/DL/dsy/dsy_client/rpa/chromedriver.exe");
let driver = await new Builder()
.forBrowser(driverName)
.setChromeOptions(options)
.setChromeService(service)
.build();
return driver;
} catch (error) {
throw error;
}
}Relevant log output
no logOperating System
win11
Selenium version
js
What are the browser(s) and version(s) where you see this issue?
chrome 131
What are the browser driver(s) and version(s) where you see this issue?
chromedriver131
Are you using Selenium Grid?
"selenium-webdriver": "^4.27.0"
Metadata
Metadata
Assignees
Labels
I-questionApplied to questions. Issues should be closed and send the user to community resources.Applied to questions. Issues should be closed and send the user to community resources.