Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example not working for firefox #32

Open
samhstn opened this issue Sep 16, 2016 · 4 comments
Open

Example not working for firefox #32

samhstn opened this issue Sep 16, 2016 · 4 comments

Comments

@samhstn
Copy link
Member

samhstn commented Sep 16, 2016

Firefox version: 47.0.1 (and 48.0.1)
Selenium version: 2.53.0

If you run:

git clone https://github.com/dwyl/learn-nightwatch.git && cd learn-nightwatch

Then change lines 51 - 58 from:

"browserName": "chrome",
        "chromeOptions": {
          "args": [
            `Mozilla/5.0 (iPhone; CPU iPhone OS 5_0 like Mac OS X) AppleWebKit/534.46
            (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3`,
            "--window-size=640,1136" // iphone 5
          ]
        },

To:

browserName: 'firefox'

Then run npm test and you get just a firefox browser and the test hangs

@nelsonic
Copy link
Member

@Shouston3 are you able to launch firefox from your terminal?

@samhstn
Copy link
Member Author

samhstn commented Sep 17, 2016

@nelsonic yes, running:

$ /Applications/Firefox.app/Contents/MacOS/firefox

opens a new browser window

@nelsonic
Copy link
Member

related to: #5 😢

@DevS1993
Copy link

DevS1993 commented Aug 2, 2018

I was able to run nightwatch in firefox 61 on an ubuntu machine. this is my config,

{
  "src_folders" : ["tests"],
  "output_folder" : "reports",

  "selenium" : {
    "start_process" : true,
    "server_path" : "./bin/selenium-server/lib/runner/selenium-server-standalone-3.13.0.jar",
    "port" : 4444,
    "cli_args" : {
      "webdriver.gecko.driver" : "./bin/geckodriver/geckodriver"
    }
  },

  "test_settings" : {
    "default" : {
      "launch_url" : "http://localhost",
      "selenium_port"  : 4444,
      "selenium_host"  : "localhost",
      "silent": true,
      "screenshots" : {
        "enabled" : false,
        "path" : ""
      },
      "desiredCapabilities": {
        "browserName": "firefox",
        "marionette": true
      }
    }
  }
}

i have removed the keys which take "" as default values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants