HomeWebDriverIO

WebDriverIO – Setup Environment Variable for Gecko driver.

WebDriverIO – Setup Environment Variable for Gecko driver.

WebDriverIO – Setup Environment Variable for Gecko driver.

 Prerequisite: –We need to setup and run Geckodriver for executing WebDriverIO automation scripts. Hence Geckodriver should be downloaded on the system where you want to run your geckodriver.exe based on systems compatibility.

Follow the below steps to setup GeckoDriver in your machine:

Step 1:- Copy the path of your Geckodriver.exe wherever you have kept it on your system.

Refer Screenshot below:-

Step 2:- Click on Windows Button / Go to Program and open Control Panel of your system.

Refer Screenshot below:-

Step 3:- Click on Systems and Security and Then Click on System.

Refer Screenshots below:-

Step 4 :- Click on Advanced system settings.

Refer Screenshot below:-

Step 5:- Click on Environment Variables on System Properties.

Refer Screenshot below:-

Step 6:- Click on Path under System Variables and Click on Edit Button.

Refer Screenshot below:-

Step 7:- Enter your Geckodriver Path from Step 1 in Edit your Environment Variable Window and Click on ok Button.

Refer Screenshot below:-

Here we go. Your Environment Variable has been set up for GeckoDriver.

Now, you are ready to run the GeckoDriver (Use below command in GitBash) before executing WebDriverIO Automation scripts (Ignore if GeckoDriver is already running on your machine):

Thank you for Reading this Article. Hope it helped you!! 

Happy Learning 🙂

About Me > Ajay Lunia 

Connect to me on Linked In (Click here)

On a mission to contribute to the Software Testing Community in all possible ways.

If you like this article, share it on LinkedIn using the below button:

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *