Like other Selenium drivers from other browser providers, Mozilla has released an executable file that will work with the browser.
You can download the latest executable geckodriver from here
Add the loaded geckodriver executable to the system path
Binding Clients Selenium will try to find the gekodriver executable (or wires) from the system path. You will need to add the directory containing the executable to the system path.
On Unix systems, you can do the following to add it to the search path on the system if you are using a bash-compatible shell:
export PATH=$PATH:/path/to/directory/of/executable/downloaded/in/previous/step
On Windows, you need to update the Path system variable to add the full path to the geckodriver executable. The principle is the same as in Unix.
After all of the above, you need to initialize FireFoxDriver , as shown below: -
var driver = new FirefoxDriver(new FirefoxOptions());
Note : - Follow this link to solve this problem with another programming language.
Saurabh gaur
source share