How to set chrome options for aerokube moon on C#

382 Views Asked by At

I am trying to run my selenium tests on aerokube moon

I can see moon ui at http://moon.aerokube.local/ with default configuration.

taking reference from java example project on their github I have setup moon capabilities as

Dictionary<dynamic, dynamic> moonoption = new Dictionary<dynamic, dynamic>();
            moonoption.Add("enableVideo", true);
            moonoption.Add("enableVNC", true);
            moonoption.Add("videoName", testName + ".mp4");
ChromeOptions copt = new ChromeOptions();
copt.AddAdditionalCapability("moon:options", moonoption);

but when I run the tests I get the error

enter image description here

How to add the moon capabilities for moon in C#

also no tag for moon is available so add so adding selenoid edit: I am using Selenium 3.

1

There are 1 best solutions below

4
vania-pooh On

You should add moon:options on the top level of capabilities object. Your code is adding the same key under goog:chromeOptions which is wrong.