Ajustes
This commit is contained in:
@@ -510,7 +510,14 @@ class SigaAutomation:
|
||||
|
||||
async def _fill_cash_value(self):
|
||||
page = self.page
|
||||
valor = await page.locator("#f_valoratual").input_value()
|
||||
el = page.locator("#f_valoratual")
|
||||
|
||||
# Tenta ler como input primeiro, fallback para inner_text
|
||||
try:
|
||||
valor = await el.input_value()
|
||||
except Exception:
|
||||
valor = (await el.inner_text()).strip()
|
||||
|
||||
if not valor:
|
||||
logger.warning("⚠️ #f_valoratual vazio!")
|
||||
valor = "0"
|
||||
|
||||
Reference in New Issue
Block a user