How to use safaridriver from safari technology preview in selenium grid

Hi,


We have on OS 10.12.1 (Sierra) Safari 10 and Safari Technolgy Preview installed.

Since there is an issue with safari 10 that is resolved in the technology preview version, we like to run a selenium node with the safaridriver that is embedded in Safari Technology Preview (/Applications/Safari Technology Preview.app/Contents/MacOS/safaridriver).


I've no clue on how to set the correct parameters in the selenium node json config file (see current content below).

Does anyone run into this?

{

"capabilities":

[

{

"browserName": "safari technology preview",

"version": "10",

"maxInstances": 1,

"webdriver.safari.driver": "/Applications/Safari\ Technology\ Preview.app/Contents/MacOS/safaridriver"

}

],


"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",

"maxSession": 1,

"port": 5555,

"register": true,

"registerCycle": 5000,

"hub": "http://130.144.188.101:4444",

"role": "node",

}

There's a setUseTechnologyPreview method in the selenium class SafariOptions that you pass. Just keep the same node json file you use for regular safari.


https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/safari/SafariOptions.html

This option is not implemented for c# - are there any plans to fix it?

We have tried by using

options.AddAdditionalCapability('useTechnologyPreview', true)
, but it did not work.

We are using:

                    Dictionary<string, object> remoteSafariOptions = new Dictionary<string, object>();
                    remoteSafariOptions["technologyPreview"] = true;
                    safariOptions = new SafariOptions();
                    safariOptions.AddAdditionalCapability("safari.options", remoteSafariOptions);
                    browser = new RemoteWebDriver(new Uri(seleniumRemoteGridUrl), safariOptions.ToCapabilities());

which works fine.

thank you ! that helped!

How to use safaridriver from safari technology preview in selenium grid
 
 
Q