Chrome headless mode doesn’t seem to support resizing so WebUI.SetViewPortSize wouldn’t work. It might be a good idea support command line parameter for WebUI.OpenBrowser to allow passing --window-size to the browser.
Chrome headless mode doesn’t seem to support resizing so WebUI.SetViewPortSize wouldn’t work. It might be a good idea support command line parameter for WebUI.OpenBrowser to allow passing --window-size to the browser.
I don’t understand why Katalon can’t support it. Technically, resizing for headless chrome has not much difference from other browser, which are all based on webdriver standard
I have solved this problem by adding a customized browser based on Chrome, with params {“CHROME_DRIVER”:{“args”:["–headless","–window-size=1920,1280"]}}, then I can change the window size.
I think the problem that can’t change size for default ‘Chrome (headless)’ of Katalon is a bug for Katalon.