angular / webdriver-manager

A binary manager for E2E testing
MIT License
224 stars 116 forks source link

Unable to create session from config file #398

Closed T0BiD closed 5 years ago

T0BiD commented 5 years ago

Hey there, I run into the following problem after updating webdriver-manager:

E/launcher - SessionNotCreatedError: Unable to create session from my config is printed here

This is my config file which worked for the last 1.5 years:

exports.config = {
    "seleniumAddress": "http://localhost:4444/wd/hub",
    "seleniumPort": "4444",
    "capabilities": {
        "browserName": "chrome",
        "unexpectedAlertBehaviour": "accept",
        "perform": "ANY",
        "version": "ANY",
        "chromeOptions": {
            "perfLoggingPrefs": {
               "traceCategories": "blink.console,devtools.timeline,disabled-by-default-devtools.timeline,toplevel,disabled-by-default-devtools.timeline.frame,benchmark"
           },
            "prefs": {
                "credentials_enable_service": false
            },
            "args": ["--headless", "--window-size=800,1080", "--disable-blink-features=BlockCredentialedSubresources", "--no-sandbox", "--test-type=browser", "--disable-dev-shm-usage", "--enable-gpu-benchmarking", "--enable-thread-composting" , "--start-maximized"]
        },
        "loggingPrefs": { "performance": "ALL" }
    },
    "jasmineNodeOpts": {
        "showColors": true,
        "defaultTimeoutInterval": 9999999
    },
    "allScriptsTimeout": 200000,
    "params": {
        "perf": {
            "selenium": { "protocol": "http:", "slashes": true, "auth": null, "host": "localhost:4444", "port": 4444, "hostname": "localhost", "hash": null, "search": null, "query": null, "pathname": "/wd/hub", "path": "/wd/hub", "href": "http://localhost:4444/wd/hub" },
            "browsers": [{
                "browserName": "chrome", 
                "chromeOptions": { 
                    "perfLoggingPrefs": { 
                        "traceCategories": "blink.console,devtools.timeline,disabled-by-default-devtools.timeline,toplevel,disabled-by-default-devtools.timeline.frame,benchmark" 
                        },
                    "args": ["--headless", "--disable-gpu", "--disable-blink-features=BlockCredentialedSubresources", "--no-sandbox", "--test-type=browser", "--disable-dev-shm-usage"]         
                },
                "loggingPrefs": { "performance": "ALL" }
            }],
            "debugBrowser": false, 
            "actions": ["scroll"],
            "metrics": ["TimelineMetrics", "ChromeTracingMetrics", "RafRenderingStats", "NetworkTimings", "NetworkResources"],
            "metricOptions": {}
        },
        "warmup": false,
        "agilar" : false
    }
}

I know the file is a mess and it's more or less googled together, but it worked. Can you point me to what is causing this problem?

Thanks in advance, T0Bi

cnishina commented 5 years ago

I saw this post on StackOverflow and I think that's a good place for this issue and does not belong in webdriver-manager's issue queue. I'm confused about the params and I would clarify what that's used for in your StackOverflow question.