Search code examples
seleniumwebautomationqaf

how to use edgeDriver with qaf


I use below properties to run edge browser, but it doesn't work.

webdriver.edge.driver=src/main/resources/common/msedgedriver.exe
driver.name=edgeDriver

How can I use edge browser?


Solution

  • In order to set driver executable, you need to set value using appropriate system property for the driver. You can set system property either at the time of execution using -Dpropertyname=value or through code. If you are using qaf, it provides feature to set system property through property file. For that purpose you need to add system prefix with property name. For example:

    system.webdriver.edge.driver=src/main/resources/common/msedgedriver.exe