feat: add Selenium Settings page to configure paymentGroupId per office
Adds a new Settings → Advanced → Selenium Settings page where the office name (paymentGroupId) used in United/DentalHub portal dropdowns can be configured without touching code. Previously hardcoded as "Summit Dental Care"; now injected from DB into the three United workers at job dispatch. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -52,6 +52,7 @@ class AutomationUnitedDHClaimSubmit:
|
||||
|
||||
self.uniteddh_username = claim.get("uniteddhUsername", "")
|
||||
self.uniteddh_password = claim.get("uniteddhPassword", "")
|
||||
self.payment_group_id = claim.get("paymentGroupId", "")
|
||||
|
||||
self.download_dir = get_browser_manager().download_dir
|
||||
os.makedirs(self.download_dir, exist_ok=True)
|
||||
@@ -595,11 +596,11 @@ class AutomationUnitedDHClaimSubmit:
|
||||
try:
|
||||
summit_option = WebDriverWait(self.driver, 5).until(
|
||||
EC.element_to_be_clickable((By.XPATH,
|
||||
"//ng-dropdown-panel//div[contains(@class,'ng-option') and contains(.,'Summit Dental Care')]"
|
||||
f"//ng-dropdown-panel//div[contains(@class,'ng-option') and contains(.,'{self.payment_group_id}')]"
|
||||
))
|
||||
)
|
||||
summit_option.click()
|
||||
print("[UnitedDH Claim] step1: Selected Treatment Location: Summit Dental Care")
|
||||
print(f"[UnitedDH Claim] step1: Selected Treatment Location: {self.payment_group_id}")
|
||||
location_selected = True
|
||||
except TimeoutException:
|
||||
try:
|
||||
@@ -632,11 +633,11 @@ class AutomationUnitedDHClaimSubmit:
|
||||
try:
|
||||
summit_option = WebDriverWait(self.driver, 5).until(
|
||||
EC.element_to_be_clickable((By.XPATH,
|
||||
"//ng-dropdown-panel//div[contains(@class,'ng-option') and contains(.,'Summit Dental Care')]"
|
||||
f"//ng-dropdown-panel//div[contains(@class,'ng-option') and contains(.,'{self.payment_group_id}')]"
|
||||
))
|
||||
)
|
||||
summit_option.click()
|
||||
print("[UnitedDH Claim] step1: Selected Billing Entity: Summit Dental Care")
|
||||
print(f"[UnitedDH Claim] step1: Selected Billing Entity: {self.payment_group_id}")
|
||||
billing_selected = True
|
||||
except TimeoutException:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user