Hi, Charlie! This problem reproduces periodically from release to release and not only on Chrome, unfortunately. In some cases I specifically excluded such method due to unexpected UI behavior and broken runs. Good that manually it worked like a charm! Let me please clarify - are you checking page responsiveness that you need to maximize the page?
You are not alone in experiencing issues with the Maximize Browser Window command in Chromium/Chromedriver 133 on Docker Linux/Debian. This problem has been reported by other users as well2. Here are a few insights and potential workarounds:
Problem: Maximize Browser Window fails with WebDriverException: Message: unknown error: JavaScript code failed from unknown command: ‘Runtime.evaluate’ wasn’t found.
Working Setups:
Windows machine, Chrome 132/133.
Docker Linux/Debian, Chrome 132.
Failing Setup: Docker Linux/Debian, Chrome 133.
Potential Workarounds:
Use Set Window Size: Since Set Window Size works, you can use it as an alternative to manually set the window size to the desired dimensions.
Disable Status Bar: Some users have found that disabling the status bar in the view menu and restarting the application can help mitigate high ReadTheory org CPU usage issues.
Older Chrome Version: As a temporary solution, you might consider downgrading to Chrome version 132, which seems to work without issues.
I was wondering why I didn’t used the –start-maximized and retried.
But although this works on a local machine with actual screen and window management, this unfortunately doesn’t work in a docker with xvfb…
Eventually the solution is to use either the Set Windows Size keyword, or to pass it also with the position (in my case I have sometimes full screen captures, so the start position is important: