Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

DiogoGomes's avatar

Selenium - booting selenium-server-standalone-*.jar on the server

Hi,

I want to run a selenium on the server, to fetch the html of pages that have content loaded with javascript.

The first step is to run the command: java -jar selenium-server-standalone-2.48.2.jar

My question is: How can I run this command on the server with Laravel? How can I check if this selenium-server is already running or not on the server?

I need this to make sure that the selenium-server is running to run the rest of the script.

Hope that my question is clear, if not, please let me now.

Thanks

0 likes
2 replies
davorminchorov's avatar
Level 53

This is how I installed Selenium on my PC:

  1. npm install -g protractor // AngularJS's End To End Testing Framework which has Selenium with it.
  2. webdriver-manager update
  3. webdriver-manager start

webdriver-manager status shows the status if the server is running or not.

It's way easier to do it this way than downloading that single file and then run the java command.

I hope this helps you.

1 like

Please or to participate in this conversation.