More reliable XPath for Continue with camera button
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user