Open reni8911 opened 1 month ago
Please give me more information.
However, here are some possible reasons and solutions for this issue:
Website Structure Changes:
id="summaries"
may have been renamed or removed.summaries
section exists or if its identifier has changed. Update the Selenium selectors in the code accordingly.Loading Delays:
WebDriverWait
function. For example, change it from 10 seconds to 20 seconds:
WebDriverWait(driver, 20).until(EC.presence_of_element_located((By.ID, "summaries")))
Pop-ups or Consent Forms:
try:
consent_button = WebDriverWait(driver, 10).until(
EC.element_to_be_clickable((By.ID, "onetrust-accept-btn-handler"))
)
consent_button.click()
except Exception:
print("Consent button not found or not clickable.")
Anti-Bot Measures:
Outdated WebDriver or Browser Version:
Message:
Failed to load summaries for GCDH: Message: Stacktrace: RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:180:5 NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:392:5 element.find/</<@chrome://remote/content/marionette/element.sys.mjs:133:16