Can we change binary path location in QAF framework

Viewed 30

I have a requirement to run application in chrome beta version using Qmetry Automation framework. I tried to change binary path using capabilities and other different ways but none of them worked, Could please help in providing solution

1 Answers

Looks like issue is in capability value. Try adding goog: prefix to key chromeOptions, for example:

chrome.additional.capabilities={"goog:chromeOptions":{"binary":"Path to the Chrome executable"}}

Here is easiest way to generate or validate Capabilities:

public static void main(String[] args) {
    ChromeOptions options = new ChromeOptions();
    options.setBinary("Path to the Chrome executable");
    
    System.out.println(JSONUtil.toString(options.toJson()));
}

Refer answer of similar question for another way to set capability through code using driver listener.

Related