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:
|
except Exception:
|
||||||
pass
|
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:
|
try:
|
||||||
camera_btn.click()
|
camera_btn.click()
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
Reference in New Issue
Block a user