worker-automate-hub 0.5.705__tar.gz → 0.5.707__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/PKG-INFO +1 -1
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/pyproject.toml +1 -1
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/descartes.py +5 -4
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py +1 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/geracao_aprovacao_pedidos_novo.py +44 -34
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/utils/util.py +1 -1
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/README.md +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/__init__.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/api/__init__.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/api/ahead_service.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/api/client.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/api/datalake_service.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/api/helpers/__init__.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/api/helpers/api_helpers.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/api/rdp_service.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/api/rpa_fila_service.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/api/rpa_historico_service.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/api/webhook_service.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/cli.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/config/__init__.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/config/settings.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/config.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/core/so_manipulation.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/decorators/__init__.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/decorators/deprecation.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/decorators/rate_limit.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/decorators/repeat.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/decorators/retry.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/decorators/singleton.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/decorators/timeit.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/models/__init__.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/models/dao/__init__.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/models/dao/rpa_configuracao.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/models/dao/rpa_fila.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/models/dao/rpa_historico.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/models/dao/rpa_processo.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/models/dao/rpa_robo.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/models/dto/__init__.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/models/dto/rpa_historico_request_dto.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/models/dto/rpa_processo_entrada_dto.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/models/dto/rpa_processo_rdp_dto.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/models/dto/rpa_sap_dto.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/models/dto/rpa_sistema_dto.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/__init__.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/__init__.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/abertura_livros_fiscais.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/coleta_dje_process.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/conexao_rdp.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/cte_manual.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/cte_xml.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/devolucao_ctf.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/devolucao_ctf_35.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/ecac_estadual_go.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/ecac_estadual_main.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/ecac_estadual_mt.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/ecac_estadual_sc.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/ecac_estadual_sp.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/ecac_federal.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/entrada_cte_1353.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/entrada_cte_333.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/entrada_de_notas_15.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/entrada_de_notas_16.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/entrada_de_notas_207.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/entrada_de_notas_32.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/entrada_de_notas_33.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/entrada_de_notas_34.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/entrada_de_notas_36.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/entrada_de_notas_39.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/entrada_de_notas_500.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/entrada_de_notas_503.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/entrada_de_notas_505.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/entrada_de_notas_9.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/entrada_de_notas_9000.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/exemplo_processo.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/extracao_fechamento_contabil.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/extracao_fechamento_emsys.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/fechar_conexao_rdp.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/fidc_exportacao_docs_portal_b2b.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/fidc_remessa_cobranca_cnab240.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/fidc_retorno_cobranca.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/geracao_aprovacao_pedidos.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/integracao_contabil.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/integracao_contabil_generica.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/lancamento_pis_cofins.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/lancamento_rateio.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/login_emsys.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/login_emsys_versao_especifica.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/notas_faturamento_sap.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/playground.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/sped_fiscal.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/jobs/transferencias.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/task_definitions.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/task_executor.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/utils/__init__.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/utils/env.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/utils/get_creds_gworkspace.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/utils/logger.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/utils/toast.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/utils/updater.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/utils/utils_nfe_entrada.py +0 -0
- {worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/worker.py +0 -0
@@ -706,7 +706,7 @@ async def descartes(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
706
706
|
sucesso=False, retorno=log_msg, status=RpaHistoricoStatusEnum.Falha, tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
707
707
|
)
|
708
708
|
|
709
|
-
await worker_sleep(
|
709
|
+
await worker_sleep(5)
|
710
710
|
|
711
711
|
# Clica no botão "+" no canto superior esquerdo para lançar a pre-venda
|
712
712
|
console.print(
|
@@ -787,7 +787,7 @@ async def descartes(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
787
787
|
status=RpaHistoricoStatusEnum.Falha, tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
788
788
|
)
|
789
789
|
|
790
|
-
screenshot_path = take_screenshot()
|
790
|
+
# screenshot_path = take_screenshot()
|
791
791
|
|
792
792
|
# Message 'Deseja pesquisar pré-venda?'
|
793
793
|
console.print(
|
@@ -837,6 +837,7 @@ async def descartes(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
837
837
|
# retorno=log_msg,
|
838
838
|
# status=RpaHistoricoStatusEnum.Falha)
|
839
839
|
|
840
|
+
await worker_sleep(5)
|
840
841
|
pyautogui.moveTo(1200, 300)
|
841
842
|
|
842
843
|
console.print("Verificando a mensagem: Confirmar transferencia...\n")
|
@@ -854,11 +855,11 @@ async def descartes(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
854
855
|
console.log(
|
855
856
|
"Cliclou em 'Sim' para cofirmar a pré-venda", style="bold green"
|
856
857
|
)
|
857
|
-
await worker_sleep(
|
858
|
+
await worker_sleep(8)
|
858
859
|
pyautogui.click(956, 559)
|
859
860
|
pyautogui.moveTo(1200, 300)
|
860
861
|
|
861
|
-
await worker_sleep(
|
862
|
+
await worker_sleep(8)
|
862
863
|
screenshot_path = take_screenshot()
|
863
864
|
vencimento_message_primeira_parcela = take_target_position(
|
864
865
|
screenshot_path, "vencimento"
|
@@ -1,6 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
1
|
import asyncio
|
2
|
+
import sys
|
3
|
+
import os
|
4
|
+
# sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "..")))
|
5
|
+
|
4
6
|
from worker_automate_hub.api.client import get_config_by_name
|
5
7
|
from worker_automate_hub.models.dto.rpa_historico_request_dto import RpaHistoricoStatusEnum, RpaRetornoProcessoDTO, RpaTagDTO, RpaTagEnum
|
6
8
|
from worker_automate_hub.models.dto.rpa_processo_entrada_dto import RpaProcessoEntradaDTO
|
@@ -51,7 +53,7 @@ async def geracao_aprovacao_pedidos_processo(task: RpaProcessoEntradaDTO) -> Rpa
|
|
51
53
|
|
52
54
|
if task.uuidProcesso == "c8527e90-c65b-4d68-b4cf-25008b678957":
|
53
55
|
empresa = "34"
|
54
|
-
periodo = "
|
56
|
+
periodo = "1"
|
55
57
|
elif task.uuidProcesso == "260380b7-a3e5-4c23-ab69-b428ee552830":
|
56
58
|
empresa = "171"
|
57
59
|
periodo = "1"
|
@@ -134,18 +136,20 @@ async def geracao_aprovacao_pedidos_processo(task: RpaProcessoEntradaDTO) -> Rpa
|
|
134
136
|
await worker_sleep(5)
|
135
137
|
|
136
138
|
console.print("Selecionando todas as filiais...")
|
137
|
-
pyautogui.click(x=
|
138
|
-
await worker_sleep(2)
|
139
|
-
|
140
|
-
##### Janela Seleção de Empresa #####
|
141
|
-
|
142
|
-
console.print("Clicando em ok para confirmar...")
|
143
|
-
app = Application(backend="win32").connect(
|
144
|
-
class_name="TFrmSelecionaEmpresas", found_index=0)
|
145
|
-
main_window = app["TFrmSelecionaEmpresas"]
|
146
|
-
main_window.child_window(class_name="TBitBtn", found_index=1).click_input()
|
139
|
+
pyautogui.click(x=720, y=620)
|
147
140
|
await worker_sleep(5)
|
148
141
|
|
142
|
+
|
143
|
+
##### Janela Seleção de Empresa #####
|
144
|
+
try:
|
145
|
+
console.print("Clicando em ok para confirmar...")
|
146
|
+
app = Application(backend="win32").connect(
|
147
|
+
class_name="TFrmSelecionaEmpresas", found_index=0)
|
148
|
+
main_window = app["TFrmSelecionaEmpresas"]
|
149
|
+
main_window.child_window(class_name="TBitBtn", found_index=1).click_input()
|
150
|
+
await worker_sleep(5)
|
151
|
+
except:
|
152
|
+
pass
|
149
153
|
# tela de aguarde
|
150
154
|
try:
|
151
155
|
console.print("Aguardando janela de aguarde finalizar...")
|
@@ -179,18 +183,21 @@ async def geracao_aprovacao_pedidos_processo(task: RpaProcessoEntradaDTO) -> Rpa
|
|
179
183
|
await worker_sleep(30)
|
180
184
|
|
181
185
|
console.print("Clicando em aprovar...")
|
182
|
-
pyautogui.click(x=
|
183
|
-
|
184
|
-
await worker_sleep(
|
185
|
-
|
186
|
-
##### Janela Motivo da Aprovação da Negociação de Compra #####
|
187
|
-
|
188
|
-
console.print("clicando em OK em Motivo da aprovação da Negociação de Compra...")
|
189
|
-
app = Application(backend="win32").connect(
|
190
|
-
class_name="TFrmInputBoxText", found_index=0)
|
191
|
-
main_window = app["TFrmInputBoxText"]
|
192
|
-
main_window.child_window(class_name="TBitBtn", found_index=1).click_input()
|
186
|
+
pyautogui.click(x=1120, y=753)
|
187
|
+
|
188
|
+
await worker_sleep(5)
|
193
189
|
|
190
|
+
try:
|
191
|
+
##### Janela Motivo da Aprovação da Negociação de Compra #####
|
192
|
+
|
193
|
+
console.print("clicando em OK em Motivo da aprovação da Negociação de Compra...")
|
194
|
+
app = Application(backend="win32").connect(
|
195
|
+
class_name="TFrmInputBoxText", found_index=0)
|
196
|
+
main_window = app["TFrmInputBoxText"]
|
197
|
+
main_window.set_focus()
|
198
|
+
main_window.child_window(class_name="TBitBtn", found_index=1).click_input()
|
199
|
+
except:
|
200
|
+
pass
|
194
201
|
await worker_sleep(20)
|
195
202
|
|
196
203
|
##### Janela Information #####
|
@@ -357,12 +364,17 @@ async def geracao_aprovacao_pedidos_processo(task: RpaProcessoEntradaDTO) -> Rpa
|
|
357
364
|
checks = 0
|
358
365
|
|
359
366
|
for _ in range(max_attempts):
|
360
|
-
|
367
|
+
janela_confirm = app.window(title="Confirm")
|
368
|
+
|
369
|
+
if janela_confirm.exists(timeout=1): # espera 1s a cada tentativa
|
361
370
|
checks = 0
|
362
371
|
|
363
|
-
|
364
|
-
|
365
|
-
|
372
|
+
try:
|
373
|
+
janela_confirm.set_focus()
|
374
|
+
janela_confirm.restore() # garante que está visível
|
375
|
+
except Exception as e:
|
376
|
+
print(f"Erro ao dar foco: {e}")
|
377
|
+
continue
|
366
378
|
|
367
379
|
# Tenta clicar até 4 vezes com intervalo de 5s
|
368
380
|
for _ in range(4):
|
@@ -370,18 +382,16 @@ async def geracao_aprovacao_pedidos_processo(task: RpaProcessoEntradaDTO) -> Rpa
|
|
370
382
|
await emsys.verify_warning_and_error("Confirm", "&Yes")
|
371
383
|
break # Sai do loop se clicar com sucesso
|
372
384
|
except Exception as e:
|
373
|
-
print(f"Tentativa falhou: {e}")
|
385
|
+
print(f"Tentativa de clique falhou: {e}")
|
374
386
|
time.sleep(5)
|
375
|
-
break # Sai do loop principal
|
387
|
+
break # Sai do loop principal após tentar clicar
|
376
388
|
else:
|
377
389
|
checks += 1
|
378
390
|
if checks >= minimum_checks:
|
391
|
+
print("Janela 'Confirm' não apareceu após múltiplas tentativas.")
|
379
392
|
break
|
380
393
|
time.sleep(1)
|
381
|
-
|
382
|
-
max_attempts = 80
|
383
|
-
minimum_checks = 4
|
384
|
-
checks = 0
|
394
|
+
|
385
395
|
|
386
396
|
for _ in range(max_attempts):
|
387
397
|
if app.window(title="Information").exists():
|
{worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/utils/util.py
RENAMED
@@ -4042,7 +4042,7 @@ async def nf_devolucao_liquidar_cupom(
|
|
4042
4042
|
"assets\\emsys\\icon_pesquisa_nota_saida.png", confidence=0.8
|
4043
4043
|
)
|
4044
4044
|
pyautogui.click(pesquisar_icon)
|
4045
|
-
await worker_sleep(
|
4045
|
+
await worker_sleep(10)
|
4046
4046
|
except Exception as e:
|
4047
4047
|
return RpaRetornoProcessoDTO(
|
4048
4048
|
sucesso=False,
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/api/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/api/ahead_service.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/api/client.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/api/rdp_service.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/config/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/config/settings.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/decorators/repeat.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/decorators/retry.py
RENAMED
File without changes
|
File without changes
|
{worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/decorators/timeit.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/models/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/tasks/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/utils/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/utils/env.py
RENAMED
File without changes
|
File without changes
|
{worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/utils/logger.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/utils/toast.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.705 → worker_automate_hub-0.5.707}/worker_automate_hub/utils/updater.py
RENAMED
File without changes
|
File without changes
|
File without changes
|