{"action":"created","issue":{"url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/1785","repository_url":"https://api.github.com/repos/nightwatchjs/nightwatch","labels_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/1785/labels{/name}","comments_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/1785/comments","events_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/1785/events","html_url":"https://github.com/nightwatchjs/nightwatch/issues/1785","id":319461962,"number":1785,"title":"Nightwatch does not work with firefox on selenium grid 3.7+","user":{"login":"metareven","id":1016620,"avatar_url":"https://avatars2.githubusercontent.com/u/1016620?v=4","gravatar_id":"","url":"https://api.github.com/users/metareven","html_url":"https://github.com/metareven","followers_url":"https://api.github.com/users/metareven/followers","following_url":"https://api.github.com/users/metareven/following{/other_user}","gists_url":"https://api.github.com/users/metareven/gists{/gist_id}","starred_url":"https://api.github.com/users/metareven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metareven/subscriptions","organizations_url":"https://api.github.com/users/metareven/orgs","repos_url":"https://api.github.com/users/metareven/repos","events_url":"https://api.github.com/users/metareven/events{/privacy}","received_events_url":"https://api.github.com/users/metareven/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-02T08:38:49Z","updated_at":"2018-05-02T13:41:56Z","closed_at":null,"author_association":"NONE","body":"How to reproduce:\r\n\r\nInstall nightwatch v 0.19.20\r\n\r\nRun docker-compose up with the following docker-compose.yml file:\r\n\r\n```\r\nseleniumhub:\r\n  image: selenium/hub:latest\r\n  ports:\r\n    - 4444:4444\r\n  environment:\r\n    - GRID_TIMEOUT=10\r\n\r\nfirefoxnode:\r\n  image: selenium/node-firefox:latest\r\n  ports:\r\n    - 5900:5900\r\n  links:\r\n    - seleniumhub:hub\r\n```\r\n\r\nRun any test using a remote webdriver with the following desiredCapabilities:\r\n```\r\n\"desiredCapabilities\":{\r\n  \"browserName\": \"firefox\"\r\n}\r\n```\r\nThe test will now crash, claiming to be unable to connect, with an error message akin to this:\r\n\r\n```\r\nError retrieving a new session from the selenium server\r\n MyCoolTest   Connection refused! Is selenium server started?\r\n\r\n MyCoolTest   { value: \r\n   { sessionId: '40bc120d-5ce5-4710-ac51-e01b1a61be3a',\r\n     capabilities: \r\n      { 'moz:profile': '/tmp/rust_mozprofile.j6a6rb2IUrXa',\r\n        rotatable: false,\r\n        timeouts: [Object],\r\n        pageLoadStrategy: 'normal',\r\n        'moz:headless': false,\r\n        'moz:accessibilityChecks': false,\r\n        'moz:useNonSpecCompliantPointerOrigin': false,\r\n        acceptInsecureCerts: false,\r\n        browserVersion: '59.0.2',\r\n        platformVersion: '4.13.0-39-generic',\r\n        'moz:processID': 139,\r\n        browserName: 'firefox',\r\n        platformName: 'linux',\r\n        'moz:webdriverClick': true,\r\n        'webdriver.remote.sessionid': '40bc120d-5ce5-4710-ac51-e01b1a61be3a' } } }\r\n```\r\n\r\nWe can here see that the sessionID in the response from the request made by nightwatch is inside the value object and not on the top level as Nightwatch expects. I have tried editing the Nightwatch-code to look for the sessionID inside the value object, but all of our tests then fails elsewhere so there seems to be more compatability issues here as all of our tests works just fine when using selenium Grid 3.6.\r\n\r\nThis has to be fixed somehow. Posting the same issue on the Selenium github as I am not sure which of you is to blame\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/comments/385981526","html_url":"https://github.com/nightwatchjs/nightwatch/issues/1785#issuecomment-385981526","issue_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/1785","id":385981526,"user":{"login":"Dobbychen","id":6589967,"avatar_url":"https://avatars1.githubusercontent.com/u/6589967?v=4","gravatar_id":"","url":"https://api.github.com/users/Dobbychen","html_url":"https://github.com/Dobbychen","followers_url":"https://api.github.com/users/Dobbychen/followers","following_url":"https://api.github.com/users/Dobbychen/following{/other_user}","gists_url":"https://api.github.com/users/Dobbychen/gists{/gist_id}","starred_url":"https://api.github.com/users/Dobbychen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dobbychen/subscriptions","organizations_url":"https://api.github.com/users/Dobbychen/orgs","repos_url":"https://api.github.com/users/Dobbychen/repos","events_url":"https://api.github.com/users/Dobbychen/events{/privacy}","received_events_url":"https://api.github.com/users/Dobbychen/received_events","type":"User","site_admin":false},"created_at":"2018-05-02T13:41:56Z","updated_at":"2018-05-02T13:41:56Z","author_association":"NONE","body":"Yes, had experienced the same for me,\r\nWith nightwatch 1.x it is able to start tests against firefox on selenium grid, but still there are some issues."}}
{"actor":{"display_login":"Dobbychen"}}