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
Asked
Active
Viewed 89 times
0
-
Will you share what capabilities you have used along with version of selenium and qaf? – user861594 Sep 08 '22 at 00:10
-
Below is the capability settings{“chromeOptions”:{“binary”:”Beta Driver path”}} – Srinu Kusumanchi Sep 08 '22 at 13:40
1 Answers
0
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.

user861594
- 5,733
- 3
- 29
- 45