Skip to content

Instantly share code, notes, and snippets.

@nvanselow
Last active July 7, 2023 19:02
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nvanselow/f00b890c921da937ddb6 to your computer and use it in GitHub Desktop.
Save nvanselow/f00b890c921da937ddb6 to your computer and use it in GitHub Desktop.
Installing Selenium on Laravel Homestead

Install Selenium and PhantomJS on Laravel Homestead

All commands are in the terminal.

  1. SSH into the Homestead Box - vagrant ssh from homestead directory
  2. Create a new folder for Selenium - mkdir selenium from the ~ directory
  3. Navigate to that folder - cd selenium
  4. Get Selenium - wget http://selenium-release.storage.googleapis.com/2.45/selenium-server-standalone-2.45.0.jar *Note: This link comes from copying the link on http://docs.seleniumhq.org/download/
  5. Install Java - sudo apt-get install openjdk-7-jre-headless
  6. Run Selenium - java -jar selenium-server-standalone-2.45.0.jar
@niclowe
Copy link

niclowe commented Jan 27, 2017

Hi - I am trying to do this but found that openjdk-7 has been made obselete

http://askubuntu.com/questions/761127/how-do-i-install-openjdk-7-on-ubuntu-16-04-or-higher

I am trying version 8 instead.

Copy link

ghost commented Mar 13, 2019

Install selenium on Homestead vagrant box
All commands are in the terminal.

Start vagrant box: vagrant up
SSH into the Homestead Box: vagrant ssh from homestead directory
Create a new folder for Selenium: mkdir selenium from the ~ directory
Navigate to that folder: cd selenium
Get Selenium: wget http://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar Note: This link comes from copying the link on http://docs.seleniumhq.org/download/
Install Java: sudo apt-get install openjdk-8-jre-headless
Run Selenium: java -jar selenium-server-standalone-3.11.0.jar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment