How to give FirefoxDrive and gecko driver in qaf applicaiton.properties to do execution in firefox

422 Views Asked by At

I was trying to execute my QAF framework in my local Firefox( Version 61) and I need to know how to call out firefox browser from QAF application.

driver.name=geckodriver
webdriver.gecko.driver = C:/DRIVERS/geckodriver.exe

Above one did not work. Do I need to give driver.name=firefoxDriver. Even then it did not work on QAF. Please help.

1

There are 1 best solutions below

4
On

You need to set following properties for firefox:

driver.name=firefoxDriver
system.webdriver.gecko.driver=C:/DRIVERS/geckodriver.exe

You also can provide relative path like below:

system.webdriver.gecko.driver=servers/geckodriver.exe

In above case driver executable assumed under /servers. After setting above properties if you are facing any issue then you need to check geckodriver and selenium webdriver version is compatible with the version of firefox. If you are updating selenium version above 3+ make sure to use selenium-support version 3.0.0 or use qaf latest version (2.1.14-RC1 is the latest at present).