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

maximizeWindow doesn't work properly on osx #222

Closed
kirovboris opened this issue Mar 30, 2022 · 5 comments · Fixed by #223 or DevExpress/testcafe#6971
Closed

maximizeWindow doesn't work properly on osx #222

kirovboris opened this issue Mar 30, 2022 · 5 comments · Fixed by #223 or DevExpress/testcafe#6971

Comments

@kirovboris
Copy link
Collaborator

testcafe version: 1.8.4
node version: 16.14.0
browser: any

The maximizeWindow action minimizes the browser window (firefox) or causes the closing of the window (chrome, safari).

fixture `test`
    .page `https://www.google.com`;

test('New Test', async t => {
    await t
        .maximizeWindow();
});
@kirovboris kirovboris changed the title mazimizeWindow don't work properly on osx mazimizeWindow doesn't work properly on osx Mar 30, 2022
@kirovboris kirovboris changed the title mazimizeWindow doesn't work properly on osx maximizeWindow doesn't work properly on osx Mar 30, 2022
@kirovboris kirovboris linked a pull request Apr 7, 2022 that will close this issue
@sandrabartoloti
Copy link

Still seeing the same issue with maximizeWindow on MacBook with M1, macOS Monterey, version 12.6.

Error:
Was unable to maximize the window due to an error.

The get-window-max-bounds process failed with the 1 exit code.
Process output:
Incorrect arguments

Exit code: 1

TestCafe version is 1.19.0.

@github-actions
Copy link

github-actions bot commented Jun 6, 2023

Thank you for submitting this issue. Since you are using an outdated version of TestCafe, we recommend you update TestCafe to the latest version to check if this issue has been addressed. We constantly improve our tools, and there is a chance that this issue has been already resolved and/or is no longer reproducible in the latest version. We look forward to your response.

@sandrabartoloti
Copy link

Thank you for your response! I updated testcafe on the latest version and it's working now!

@jamesryan-dev
Copy link

I am using a mac, chrome with latest version of TC globally installed and still receiving this warning:

  Was unable to maximize the window due to an error.

  The get-window-max-bounds process failed with the 1 exit code.
  Process output:
  Incorrect arguments

  Exit code: 1
Screenshot 2023-06-15 at 10 22 11 am

Chrome - Version 114.0.5735.106 (Official Build) (arm64)

❯ npm info testcafe version
2.6.2

@aleks-pro
Copy link
Collaborator

Hello @jamesryan-dev ,

Could you check if there is a locally installed version of testcafe? It might be outdated. Please run the following command from your project folder: npm list testcafe. Also, specify the testcafe-browser-tools package version: npm list testcafe-browser-tools

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