selenium-standalone icon indicating copy to clipboard operation
selenium-standalone copied to clipboard

Custom Port values not adhered to - always looking for node on 4444

Open abdul-farhat opened this issue 4 years ago • 1 comments

Expected Behavior

Change capabilities host and port to custom values as:

  capabilities: [{
        maxInstances: 5,
 
        browserName: 'chrome',
        acceptInsecureCerts: true,

        hostname: '127.0.0.1',
        port: 4449,

        'goog:chromeOptions': {
            args: [
                '--disable-gpu',
                '--no-sandbox',
                '--disable-infobars',
                 '--headless',
                '--disable-features=VizDisplayCompositor',
                '--window-size=1920,1080',
            ]
        }
    }],

Services as:

    services: [
        ['selenium-standalone', {
            logPath: './temp',
            installArgs: {
                version: "3.141.59",
                drivers: {
                    chrome: { version: "97.0.4692.71" }
                }
            },
            args: {
                version: "3.141.59",
                seleniumArgs: ['-host', '127.0.0.1', '-port', '4449'],
                drivers: {
                    chrome: { version: "97.0.4692.71" },
                }
            },
        }]
    ] 

Expect standalone to create hub/node for 4444 and run tests.

Current Behavior

Get the following regardless of port number:

Failed to connect to selenium. Attempts left: 25 connect ECONNREFUSED 127.0.0.1:4444

Steps to Reproduce

Provide an unambiguous set of steps to reproduce this bug. Include commands that you used in the shell, or snippets of how you are using the JavaScript API.

https://github.com/abdul-farhat/wdio-7-example

https://gitpod.io/#https://github.com/abdul-farhat/wdio-7-example

npm i

npm run e2e-chrome

abdul-farhat avatar Jan 31 '22 17:01 abdul-farhat

Thanks for reporting!

Any contributions that resolves the bug are highly appreciated. Please take a look into our contribution guidelines and let us know if you have any questions. Cheers!

christian-bromann avatar Mar 08 '22 07:03 christian-bromann

What was the fix for this issue?

tbaruah58-elsv avatar Feb 24 '23 07:02 tbaruah58-elsv