title: How are webdriver and chromedriver options accessed in Spectron's new Application()?
body: <p>When I start a new Spectron application (for each test suite) I would like to fix the size of the app (for consistency across all machines and reloads).  </p>
  
  <p>Commands like <code>setBounds</code> and <code>maximise</code> do change dimensions, but they only do so after the app has started (which means that some components have already assumed certain dimensions, which then changes test results).</p>
  
  <p>In the <a href="https://github.com/electron/spectron#new-applicationoptions" rel="nofollow noreferrer">Spectron docs</a> various launch options are available. I've tired to use webdriver and chromedriver options but they don't seem to work. Here is an example:</p>
  
  <pre><code>app = new Application({
       path: kElectronPath,
       webdriverOptions: {
          width:1368,
          height:769,
       },
  </code></pre>
  
  <p>I just assumed that the webdriver options came from the <a href="https://electronjs.org/docs/api/browser-window#class-browserwindow" rel="nofollow noreferrer">browserwindow class</a>. How are webdriver and chromedriver options accessed in Spectron? </p>