More reliable XPath for Continue with camera button
tests / test (push) Successful in 6s
tests / release (push) Successful in 7s

This commit is contained in:
TheRaiwy
2026-07-10 18:52:17 +03:00
parent 705c6b6a0e
commit 4798f706b8
+3 -1
View File
@@ -390,7 +390,9 @@ def process_account(driver, acc: dict, donor_video: Path | None,
except Exception:
pass
camera_btn = WebDriverWait(driver, 15).until(EC.presence_of_element_located((By.XPATH, "//span[text()='Continue with camera']/ancestor::button")))
camera_btn = WebDriverWait(driver, 15).until(
EC.element_to_be_clickable((By.XPATH, "//button[contains(@class, 'age-verification-button')]"))
)
try:
camera_btn.click()
except Exception: