opentest icon indicating copy to clipboard operation
opentest copied to clipboard

How to set the binary path of chrome in the actor.yaml?

Open TripleG opened this issue 3 years ago • 2 comments

What is the keyword for setting chrome binary path in the chromeOptions section in actor.yaml?

 desiredCapabilities:
        browserName: chrome
        chromeOptions:
            args: [ --start-maximized ]

I.e. what is the equivalent of

options.setBinary("/path/to/other/chrome/binary");

TripleG avatar Jul 07 '22 09:07 TripleG

You can do that by using the selenium.chromeBinaryExePath parameter. For example, if you wanted to run a test with Chromium instead of Chrome, you'd do this:

selenium:
    desiredCapabilities:
        browserName: chrome
    chromeBinaryExePath: C:\Chromium\Chromium103.exe
    chromeDriverExePath: C:\Selenium\chromedriver.exe

The selenium.chromeBinaryExePath parameter tells the test actor to run the "setBinary" method that you mentioned above. You can examine the code here.

adrianth avatar Jul 07 '22 15:07 adrianth

It is working, thanks!

TripleG avatar Jul 07 '22 15:07 TripleG