Skip to content

Screen will not maximize the window if you first use resizeWindow #8360

@Yastrenky

Description

@Yastrenky

What is your Scenario?

Using native automation enabled
Navigate to www.google.com
Use method resizeWindow
Use method maximizeWindow

What is the Current behavior?

When using native automation, testcafe won't maximize if you use the resize window method first

What is the Expected behavior?

Testcafe should maximize if you use the resize window method first in native automation

What is the public URL of the test page? (attach your complete example)

www.google.com

What is your TestCafe test code?

fixture('Resize and maximize window')

test('Use maximize window after resize' async t =>{
await t.navigateTo("https://www.google.com")
await t.resizeWindow(1024, 400)
await t.maximizeWindow()
})

Your complete configuration file

No response

Your complete test report

No response

Screenshots

Image

Steps to Reproduce

TestCafe version

3.7.1

Node.js version

v20.15.0

Command-line arguments

testcafe chrome

Browser name(s) and version(s)

Chrome Version 131.0.6778.265

Platform(s) and version(s)

MacOs Sonoma Version 14.3.1 (23D60)

Other

No response

Metadata

Metadata

Assignees

Labels

TYPE: bugThe described behavior is considered as wrong (bug).

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions