toothsuface fixed
This commit is contained in:
@@ -180,11 +180,13 @@ class AutomationMassHealth:
|
|||||||
|
|
||||||
# Fill Tooth Surface if present
|
# Fill Tooth Surface if present
|
||||||
if proc.get("toothSurface"):
|
if proc.get("toothSurface"):
|
||||||
surface = proc["toothSurface"]
|
surfaces = proc["toothSurface"].split(",")
|
||||||
checkbox_xpath = f"//input[@type='checkbox' and @name='TS_{surface}']"
|
for surface in surfaces:
|
||||||
checkbox = wait.until(EC.element_to_be_clickable((By.XPATH, checkbox_xpath)))
|
surface = surface.strip()
|
||||||
if not checkbox.is_selected():
|
checkbox_xpath = f"//input[@type='checkbox' and @name='TS_{surface}']"
|
||||||
checkbox.click()
|
checkbox = wait.until(EC.element_to_be_clickable((By.XPATH, checkbox_xpath)))
|
||||||
|
if not checkbox.is_selected():
|
||||||
|
checkbox.click()
|
||||||
|
|
||||||
|
|
||||||
# Fill Fees if present
|
# Fill Fees if present
|
||||||
|
|||||||
Reference in New Issue
Block a user