Chrome full screen

1,074 views
Skip to first unread message

Chris Laughlin

unread,
Apr 13, 2015, 11:17:30 AM4/13/15
to nightw...@googlegroups.com
Hi, 

Im trying to config nightwatch to run chrome in full screen mode when run via nightwatch. I have the below config but cant seem to get the browser to go full screen. Im running this all on mac os if that matter:

"chrome": {
    "desiredCapabilities": {
        "browserName": "chrome",
        "javascriptEnabled": true,
        "acceptSslCerts": true,
        "chromeOptions": {
            "args": ["--start-fullscreen"]
       
}
    }
},




Daniel Rinehart

unread,
Apr 13, 2015, 6:40:34 PM4/13/15
to nightw...@googlegroups.com
When using the "args" block you don't need to specify the leading --. So it should be:

        "chromeOptions": {
          "args": ["start-fullscreen"]
        }

--
You received this message because you are subscribed to the Google Groups "NightwatchJs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nightwatchjs...@googlegroups.com.
To post to this group, send email to nightw...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nightwatchjs/3699d8ff-be52-46a5-9157-4c284ac565af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chris Laughlin

unread,
Apr 15, 2015, 5:33:53 AM4/15/15
to nightw...@googlegroups.com
thanks for the reply, that worked 

Nicolas Pennec

unread,
Apr 17, 2015, 10:19:22 AM4/17/15
to nightw...@googlegroups.com
Another way (for all browsers) :


module.exports = {
  before : function(browser) {
    browser.maximizeWindow();
  },
  'Your test Home' : function (browser) {
    browser.url(...)
  },
  after: function(browser) {
    browser.end();
  }
Reply all
Reply to author
Forward
0 new messages