Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
6.2k views
by The go-to Tester (222 points)
retagged by
I'm using Kali Linux to execute tests. I'm facing issue while setting up geckodriver. Can you provide step by step instructions on how to set geckodriver? I'm new to this. So, please provide detailed information.

1 Answer

0 like 0 dislike
by The go-to Tester (222 points)

First download geckodriver from https://github.com/mozilla/geckodriver/releases
Download either geckodriver-<version>-linux32.tar.gz or geckodriver-<version>-linux64.tar.gz

Now, extract the downloaded driver file.

Now add the geckodriver to PATH environment variable. Follow the below guide to do the same.

  1. Open a Terminal Shell emulator window
  2. Now, we are going to set PATH by editing the Bash User’s File

On your terminal type

nano ~/.bashrc

Append something like:

export PATH=$PATH:[/path/to/extracted/driverfolder/geckodriver]

To Save the Changes and Exit Hit Ctrl+x ;)
Then to Load the New PATH simply:

bash

Check it’s Working:

which geckodriver

Hope the guide helps!


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...