Specify path to Edge Chromium in Selenium Hub 3.141.59

%3CLINGO-SUB%20id%3D%22lingo-sub-1130013%22%20slang%3D%22en-US%22%3ESpecify%20path%20to%20Edge%20Chromium%20in%20Selenium%20Hub%203.141.59%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1130013%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20there%2C%20everything%20worked%20fine%20on%20version%26nbsp%3B%3CSPAN%3E79.0.309.71.%20But%20since%20the%20breaking%20changes%20of%20version%2080%20we're%20unable%20run%20our%20tests%20on%20Selenium%20Hub%26nbsp%3B3.141.59.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EBefore%20we%20specify%20path%20to%20exe%20via%20%3CSTRONG%3Echrome_binary%3C%2FSTRONG%3E%20param%2C%20like%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E-Dwebdriver.chrome.driver%3D%22%5Cpath%5Cto%5Cchromedriver.exe%22%0A-browser%20%22browserName%3Dchrome%2Cversion%3D__version__%2Cmaxinstance%3D__no__%2Cplatform%3DWINDOWS%2Cchrome_binary%3D%5Cpath%5Cto%5Cchrome%5Cbinary%5Cchrome.exe%22%20%0A-hubHost%20__address__%0A-port%20__port__%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20now%20it's%20doesn't%20work%2C%20since%20Chrome%20Options%20are%20no%20more%20supported%20according%20to%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-edge%2Fwebdriver-chromium%23download-a-webdriver-language-binding%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ethis%20page.%3C%2FA%3E%3C%2FP%3E%3CP%3EWe%20tried%20to%20change%20%3CSTRONG%3Echrome_binary%3C%2FSTRONG%3E%20param%20to%26nbsp%3B%3CSPAN%3E%3CSTRONG%3Ebinary%3C%2FSTRONG%3E%2C%20but%20it%20didn't%20work%2C%20it's%20tries%20to%20run%20stable%20version%20by%20default%2C%20and%20then%20just%20crashes%20since%20version%20we%20are%20using%20driver%20version%2080.%20Is%20there%20a%20way%20to%20specify%20path%20of%20Edge%20Chromium%20in%20Selenium%20Hub%3F%20Using%20approach%20from%20documentation%20doesn't%20work%20for%20us%2C%20since%20we%20run%20tests%20on%20Mac%20and%20Windows%2C%20and%20path%20to%20exe%20is%20always%20different.%20And%20moving%20to%20alpha%20Selenium%204.0%20also%2C%20since%20we%20have%20huge%20code%20base.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-csharp%22%3E%3CCODE%3Evar%20caps%20%3D%20new%20DesiredCapabilities(new%20Dictionary%3CSTRING%3E()%0A%7B%0A%20%20%20%20%7B%20%22ms%3AedgeOptions%22%2C%20new%20Dictionary%3CSTRING%3E()%20%7B%0A%20%20%20%20%20%20%20%20%7B%20%20%22binary%22%2C%20%40%22C%3A%5CProgram%20Files%20(x86)%5CMicrosoft%5CEdge%20Dev%5CApplication%5Cmsedge.exe%22%20%7D%0A%20%20%20%20%7D%7D%0A%7D)%3B%3C%2FSTRING%3E%3C%2FSTRING%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi there, everything worked fine on version 79.0.309.71. But since the breaking changes of version 80 we're unable run our tests on Selenium Hub 3.141.59.

 

Before we specify path to exe via chrome_binary param, like 

 

 

-Dwebdriver.chrome.driver="\path\to\chromedriver.exe"
-browser "browserName=chrome,version=__version__,maxinstance=__no__,platform=WINDOWS,chrome_binary=\path\to\chrome\binary\chrome.exe" 
-hubHost __address__
-port __port__

 

 

But now it's doesn't work, since Chrome Options are no more supported according to this page.

We tried to change chrome_binary param to binary, but it didn't work, it's tries to run stable version by default, and then just crashes since version we are using driver version 80. Is there a way to specify path of Edge Chromium in Selenium Hub? Using approach from documentation doesn't work for us, since we run tests on Mac and Windows, and path to exe is always different. And moving to alpha Selenium 4.0 also, since we have huge code base.

 

 

var caps = new DesiredCapabilities(new Dictionary<string, object>()
{
    { "ms:edgeOptions", new Dictionary<string, object>() {
        {  "binary", @"C:\Program Files (x86)\Microsoft\Edge Dev\Application\msedge.exe" }
    }}
});

 

 

0 Replies