1

Need help with below issues. I have work around for issue 1 so any tips on issue 2 would be great:

  1. --start-maximized won't trigger full window so my current work around is adding below line in beforeEach function:

    browser.driver.manage().window().maximize();      
    
  2. Trying to download file to default directory but the file is just going to download folder on my C drive instead of /tmp/downloads (on another drive).

My config:

capabilities: {
    'browserName': 'chrome',
    'chromeOption': {
        args: ['--lang=en', '--start-maximized'],
        prefs: {
            'download': {
                'prompt_for_download': false,
                'default_directory': '/tmp/downloads',
            },

        },

    },
},

As for download, I'm currently using solution from here.

Community
  • 1
  • 1
user2388556
  • 287
  • 1
  • 7
  • 17

2 Answers2

1

There is a typo. It should be chromeOptions, not chromeOption.

alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
  • omg @alecxe, I must be so blind :) . Prompt_for_download is still appearing and I will google a bit more. Thanks. – user2388556 Mar 04 '15 at 05:42
0

I think the options in protractor conf have been updated to be without "--".

So perhaps try without "--"?

args: ['lang=en', 'start-maximized']

bigbounty
  • 16,526
  • 5
  • 37
  • 65
Henry
  • 121
  • 8