Answer the question
In order to leave comments, you need to log in
Why did Selenium for Chrome 99 stop working?
After updating chrome and webdriver to version 99, the Python program that uses Selenium stopped functioning normally, and after a couple of minutes it crashes with the "target frame detached" error. Everything worked perfectly before. I'm not the only one. On one English-language forum 5 days ago, a large number of users complained about the same problem, but I did not find a solution.
Minimum code:
def results_received(driver):
result = result_block.text
if content == prev_content or len(content) < 200 or ('?' in content):
return False
return True
driver = webdriver.Chrome(driver_path)
driver.implicitly_wait(10)
driver.get(URL)
input_elem = driver.find_element(By.ID, input_id)
submit_button = driver.find_element(By.ID, submit_button_id)
result_block = driver.find_element(By.ID, result_block_id)
while True:
input_elem.clear()
input_elem.send_keys(random_text())
submit_button.click()
wait = WebDriverWait(driver, 16)
ok = wait.until(results_received)
result = result_block.text
*всякие проверки содержимого result*
Answer the question
In order to leave comments, you need to log in
$ chromedriver --version
ChromeDriver 99.0.4844.51 (d537ec02474b5afe23684e7963d538896c63ac77-refs/branch-heads/[email protected]{#875})
$ google-chrome-stable --version
Google Chrome 99.0.4844.51
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question