from selenium import webdriver
from selenium.webdriver.chrome.options import Options as ChromeOptions
attempt_number = 1
while True:
print(f"Attempt number: {attempt_number}")
options = ChromeOptions()
options.add_argument("--headless=new")
driver = webdriver.Chrome(options=options)
driver.quit()
attempt_number += 1
If I take ChromeDriver (and Chrome) back to 116.0.5845.96, we still see intermittent failures, but this time the error is a little more detailed:
no such execution context: loader has changed while resolving nodes
However, I understood that
this was the fix for that problem, so it should no longer be occurring.
Interestingly, I am unable to reproduce the problem locally, where my system details are as follows:
$ uname -a
Linux network 4.15.0-176-generic #185-Ubuntu SMP
Tue Mar 29 17:40:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
But on our AWS SPOT instances, the intermittent failures are very present:
$ uname -a
Linux network 5.4.0-1071-aws #76~18.04.1-Ubuntu SMP
Mon Mar 28 17:49:57 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Any help / advice would be very much appreciated.
Many thanks,
Tom