Where to configure company-specific paths for browser and webdrivers?

Hi,
in my company we use a modified browser (in my eyes it’s a plain and simple Firefox browser, only the name and installed filepath is different from stock). All my WebUI-Testcases fail and can’t open the Firefox-Browser. Even all other Katalon-stock browser-presets such as Chrome won’t work even though I have a vanilla Chrome installation on my desktop.
The error logs are full of unclear Katalon-Exceptions. - I suspect that Katalon Studio can’t find the right browser binaries and webdriver binaries.

I tried using desired capabilities to force using specific binary-paths for browser and webdriver.

I also tried using this solution:

→ I could open our company-specific browser this way BUT all other test-steps (aka build-in keywords) don’t recognize this open browser. How can I SET this driver-object as the “driver to go” for all other keywords?

Thank you

1 Like

Hello there and Welcome to the community!

Have you tried something like it described on this link?

It describes a way to create a new firefox browser instance using a custom keyword (by setting the browser path and driver.

public class WebUICustomKeywords {  
    @Keyword  
    def openFirefoxBrowser(String firefoxPath, String firefoxDriver) { 
    // Set path to Firefox version 
    System.setProperty("webdriver.firefox.bin", firefoxPath) 

    // Set path to Firefox driver
    System.setProperty("webdriver.gecko.driver", firefoxDriver)

    WebDriver driver = new FirefoxDriver() 
    DriverFactory.changeWebDriver(driver)  
    }  

}

DriverFactory class will be refactored on Katalon version 10+ so if this works, be carefull when updating Katalon versions.