How to make variable WebDriver's path depending on OS with Serenity BDD?

1.1k views Asked by At

I am working with Serenity BDD and Selenium to automate my project's tests. These tests should be able to be run in both Windows and Ubuntu.

Now, I got the WebDriver's path set in my serenity.properties file:

#WebDriver for Google Chrome
#-------------------------------
webdriver.driver = chrome
webdriver.chrome.driver = C:\\chromedriver.exe

Obviously, webdriver.chrome.driver path only works if project is run in Windows. How can I make variable this path depending on OS?

Thanks in advance.

0

There are 0 answers