I use Selenium Webdriver in Python with chromedriver. The performance of chromedriver suddenly was abysmal.
On closer inspection I discovered that chromedrive has started the translated version of Chrome for the x86 architecture, even though I'm on Apple Silicon.
When I start Chrome directly (without Chromedriver) the correct version starts.
When I inspected Chrome with file
it turns out, that both architectures are available. The reason seems to be that Chrome now ships as a unified binary.
This issue only appears when chromedriver is used by Selenium from Python. When I start chromedriver manually, the correct version of Chrome is started:
$ ./chromedriver
and then start chrome by http request:
$ curl -X POST http://localhost:9515/session -d '{"capabilities": {"browserName": "chrome"}}'
I found a discussion claiming that it might be the version of Selenium, so I upgraded it to version 4.11.2. No effect. Someone else suggested upgrading Java. I did upgrade to jdk 20. Also no effect. Source of discussion.
The problem started with chromedriver version 113.
Does anyone have an idea what is going on? Please help, it is slooooowwwww