question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[🐛 Bug]: SeleniumServer does not start selenium 4.x jar standalone

See original GitHub issue

What happened?

Selenium server can not start selenium 4.4.0 as a standalone server

How can we reproduce the issue?

const { SeleniumServer } = require('selenium-webdriver/remote');

test();
async function test() {
  const pathToJar3xJar = './.selenium/selenium-server/3.141.59/selenium-server.jar';
  const pathToJar4xJar = './.selenium/selenium-server/4.4.0/selenium-server.jar';

  const args = {
    args: [],
    jvmArgs: ['-Dwebdriver.chrome.driver=./.selenium/chromedriver/latest-x64/chromedriver'],
    port: undefined,
  };

  // this works fine
  const server3xJar = new SeleniumServer(pathToJar3xJar, args);
  /* does not work
  the problem that selenium 4.х requires "standalone" right after the jar file what is not happen
  when the same args are used
  */
  const server4xJar = new SeleniumServer(pathToJar4xJar, args);
}

Relevant log output

Error: Server terminated early with status 0
      at /node_modules/selenium-webdriver/remote/index.js:249:24

Operating System

macOS Ventura

Selenium version

4.7.0

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

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

Are you using Selenium Grid?

No response

Issue Analytics

  • State:open
  • Created 9 months ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

0reactions
harsha509commented, Dec 12, 2022

Hi @potapovDim ,

Sure, if you’ve fix ready, could you please raise the PR.

I have time today will take a look!

Read more comments on GitHub >

github_iconTop Results From Across the Web

selenium stand alone is not starting - Stack Overflow
selenium-server -standalone-3.8.0.jar is not official. The official website is providing download link of latest version as 3.7.1.
Read more >
Getting started with Selenium Grid
Start the Grid. java -jar selenium-server-<version>.jar standalone ... By default, the server will listen for RemoteWebDriver requests on ...
Read more >
Selenium Grid Tutorial: Setup and Example of Cross Browser ...
Selenium Grid Tutorial to learn how to run multiple tests simultaneously. Selenium grid setup with example and Cross browser testing to run ...
Read more >
Selenium grid 4 Standalone & Hub and Node concept with ...
Selenium #SeleniumGrid Manual Testing interview preparation: https://youtube.com/playlist?list=PLAkEcrdilZ4mWQsyqI5gpZQ3RPtH7PwRcPage Object ...
Read more >
Selenium 4 Grid Tutorial with examples - YouTube
In this video, I am going to explain new Selenium Grid feature which has ability to run the tests in remote machines on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found