Browser Window Resize - Maximize Issue

Hello,

I recorded my Peoplesoft HR application and notice in play back it stuck on creating contract step because browser window is not maximize. And it unable to capture object property. However sometime it passed through that step with out maximizing browser window. So in every play back its unpredictable that either it pass through that step or stuck there.

Does any one knows what is the exact issue? and how it can be fixed?

Regards,

Usman

1 Like

Have you tried just running the tests with the window maximized to see if you get the same behavior? Try adding WebUI.maximizeWindow() after you call WebUI.openBrowser(…) to see if the behavior persists.

1 Like

I tried but it didn’t work

Can you tell us your log?

Unable to maximize current window (Root cause: org.openqa.selenium.WebDriverException: unknown error: failed to change window state to maximized, current state is normal
(Session info: chrome=69.0.3497.100)
(Driver info: chromedriver=2.35.528139 (47ead77cb35ad2a9a83248b292151462a66cd881),platform=Linux 3.10.0-693.11.6.el7.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: ‘2017-11-06T21:07:36.161Z’
System info: host: ‘4b197544fc70’, ip: ‘172.17.0.2’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘3.10.0-693.11.6.el7.x86_64’, java.version: ‘1.8.0_181’
Driver info: com.kms.katalon.selenium.driver.CChromeDriver
Capabilities {acceptInsecureCerts: false, acceptSslCerts: false, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 2.35.528139 (47ead77cb35ad2…, userDataDir: /tmp/.org.chromium.Chromium…}, cssSelectorsEnabled: true, databaseEnabled: false, handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, rotatable: false, setWindowRect: true, takesHeapSnapshot: true, takesScreenshot: true, unexpectedAlertBehaviour: , unhandledPromptBehavior: , version: 69.0.3497.100, webStorageEnabled: true}
Session ID: b067fc55b5962604fc4501349883879f)

2 Likes

I am also facing browser maximize issue with 5.8.6 version of Katalon and same error as mentioned by Ahmed

Actually this happen to me and i just realize the problem. Sometime the object are hidden due to the page suddenly minimize which crop half of the page. Makes the katalon unable to detect the object and cause failure. So what i do is i used keyword ‘scroll to element’ because even if the page is not maximize, the keyword can still detect the hidden object. I hope this help your problem

I’m facing the same issue. Has the bug been resolved in the latest versions?