fix: Deltains claim selectors and dedicated fee schedule
Fixes the transaction-type radio button (was matching nothing; now targets the real data-testid), and adds a Deltains fee schedule (seeded from DDMA's prices) so Deltains claims stop falling back to MassHealth pricing.
This commit is contained in:
@@ -437,12 +437,11 @@ class AutomationDeltaInsClaimSubmit:
|
||||
print("[Deltains Claim step2] Clicking 'Statement of completed services' radio...")
|
||||
try:
|
||||
radio = WebDriverWait(self.driver, 10).until(
|
||||
EC.element_to_be_clickable((By.XPATH,
|
||||
"//input[@type='radio'][following-sibling::*[contains(text(),'Statement of completed services')]] | "
|
||||
"//label[contains(.,'Statement of completed services')]//input[@type='radio'] | "
|
||||
"//input[@type='radio'][ancestor::*[contains(.,'Statement of completed services')]][1]"))
|
||||
EC.presence_of_element_located((By.XPATH,
|
||||
"//input[@data-testid='transactionRB_Claim']"))
|
||||
)
|
||||
radio.click()
|
||||
self.driver.execute_script("arguments[0].scrollIntoView({block:'center'});", radio)
|
||||
self.driver.execute_script("arguments[0].click();", radio)
|
||||
time.sleep(1)
|
||||
print("[Deltains Claim step2] Selected 'Statement of completed services'")
|
||||
except TimeoutException:
|
||||
|
||||
Reference in New Issue
Block a user