Skip to content

Maximize option for resolution should have same functionality as manually clicking maximise button on window #1600

Closed

Description

@hotdog2201

What are you trying to achieve?

When I set the windowSize to 'maximize' the browser window should be fullscreened, eg on Mac OS this would bring the window over the taskbar, hence maximising the window the same as clicking maximise should do.

What do you get instead?

The window is simply brought to the maximum resolution of the screen, but the option is not acting as a proper maximise, such as clicking the green maximise button on a window in mac os.

Provide test source code if related
helpers: {
WebDriver: {
host: process.profile || 'localhost',
url: process.env.CODECEPT_URL || 'http://localhost:3000',
browser: 'chrome',
coloredLogs: true,
restart: false,
waitForTimeout: 10000,
windowSize: 'maximize',
},
},

Details

  • CodeceptJS version: 2.0.8
  • NodeJS Version: 11.3.0
  • Operating System: Red Hat LInux, but issue tested on Mac OS
  • WebDriverIO: 5.7.9
  • Configuration file:
exports.config = {
  tests: './e2eTests/tests/**/*.test.js',
  output: './output',

  /**
   *  actors and page objects to be registered in DI container ,
   * and included in tests. Accepts objects and module require paths
   */
  include: {
    offenses: './e2eTests/tests/offenses/offensesPageObject.js',
  },

  helpers: {
    WebDriver: {
      host: process.profile || 'localhost',
      url: process.env.CODECEPT_URL || 'http://localhost:3000',
      browser: 'chrome',
      coloredLogs: true,
      restart: false,
      waitForTimeout: 10000,
      /**
       * replace below with 'maximize' if your browser window size or position
       * is causing tests to fail
       * */
      windowSize: '1920x1080',
    },
  },
  plugins: {
    retryFailedStep: {
      enabled: true,
      retries: 10,
    },
    screenshotOnFail: {
      enabled: true,
    },
  },
  multiple: {
    parallel: {
      browsers: ['chrome', 'firefox'],
    },
  },
  bootstrap: null,
  mocha: {},
  name: 'test-ui',
};

Activity

  1. changed the title [-]Maximize option for resolution should have same functionality as manually clicking maximise[/-] [+]Maximize option for resolution should have same functionality as manually clicking maximise button on window[/+] on Apr 10, 2019
  2. realnikunj commented on May 25, 2020

    @realnikunj

    no update on this yet ?

  3. SavitaMaurya commented on Jun 28, 2020

    @SavitaMaurya

    Hi Team,

    Any update on the issue?

  4. DavertMik commented on Sep 5, 2021

    @DavertMik
    Contributor

    sorry, this is how WebDriver works. We can't do anything on our side

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions