worker-automate-hub 0.5.616__py3-none-any.whl → 0.5.617__py3-none-any.whl
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/tasks/jobs/extracao_fechamento_emsys.py +14 -20
- {worker_automate_hub-0.5.616.dist-info → worker_automate_hub-0.5.617.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.5.616.dist-info → worker_automate_hub-0.5.617.dist-info}/RECORD +5 -5
- {worker_automate_hub-0.5.616.dist-info → worker_automate_hub-0.5.617.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.5.616.dist-info → worker_automate_hub-0.5.617.dist-info}/entry_points.txt +0 -0
@@ -291,28 +291,22 @@ async def extracao_fechamento_emsys(
|
|
291
291
|
await worker_sleep(3)
|
292
292
|
|
293
293
|
# Clicar em gerar relatório
|
294
|
-
console.print("Clicar em gerar relatório")
|
295
|
-
btn_gerar_relatorio = main_window.child_window(
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
await worker_sleep(5)
|
294
|
+
console.print("Clicar em gerar relatório")
|
295
|
+
btn_gerar_relatorio = main_window.child_window(class_name="TBitBtn", found_index=0).click_input()
|
296
|
+
|
297
|
+
await worker_sleep(7)
|
300
298
|
console.print("Verificar se existem dados")
|
301
299
|
|
302
300
|
try:
|
303
|
-
nao_existe_dados =
|
301
|
+
nao_existe_dados = fr"{ASSETS_BASE_PATH}\extracao_fechamento_emsys\nao_existem_dados.png"
|
304
302
|
|
305
303
|
for tentativa in range(3):
|
306
|
-
console.print(
|
307
|
-
|
308
|
-
)
|
309
|
-
|
310
|
-
btn_gerar_relatorio = main_window.child_window(
|
311
|
-
class_name="TBitBtn", found_index=0
|
312
|
-
)
|
313
|
-
if btn_gerar_relatorio.exists(timeout=2):
|
304
|
+
console.print(f"Tentativa {tentativa + 1}: Clicar em 'Gerar Relatório'")
|
305
|
+
|
306
|
+
btn_gerar_relatorio = main_window.child_window(class_name="TBitBtn", found_index=0)
|
307
|
+
if btn_gerar_relatorio.exists(timeout=5):
|
314
308
|
btn_gerar_relatorio.click_input()
|
315
|
-
await worker_sleep(
|
309
|
+
await worker_sleep(5)
|
316
310
|
|
317
311
|
# Verifica se apareceu a imagem de "sem dados"
|
318
312
|
localizacao = pyautogui.locateOnScreen(
|
@@ -336,8 +330,8 @@ async def extracao_fechamento_emsys(
|
|
336
330
|
style="bold red",
|
337
331
|
)
|
338
332
|
|
339
|
-
await worker_sleep(
|
340
|
-
break
|
333
|
+
await worker_sleep(5)
|
334
|
+
break
|
341
335
|
|
342
336
|
# Verifica se apareceu a janela "Salvar para arquivo"
|
343
337
|
try:
|
@@ -358,8 +352,8 @@ async def extracao_fechamento_emsys(
|
|
358
352
|
"Botão 'Gerar Relatório' não encontrado.", style="bold red"
|
359
353
|
)
|
360
354
|
break
|
361
|
-
except:
|
362
|
-
await worker_sleep(
|
355
|
+
except:
|
356
|
+
await worker_sleep(5)
|
363
357
|
##### Janela Salvar para arquivo #####
|
364
358
|
console.print(f"Dados encontrados para {mnemonico}")
|
365
359
|
app = Application(backend="win32").connect(
|
@@ -68,7 +68,7 @@ worker_automate_hub/tasks/jobs/entrada_de_notas_9.py,sha256=VJ-2g7tuqbAICOarJpAh
|
|
68
68
|
worker_automate_hub/tasks/jobs/entrada_de_notas_9000.py,sha256=paUghcOOCWRA2qVmU89YmThRTm8fMWb2QkE6tM-_MC0,65504
|
69
69
|
worker_automate_hub/tasks/jobs/exemplo_processo.py,sha256=nV0iLoip2FH2-FhLmhX3nPqsfl_MPufZ3E5Q5krJvdc,3544
|
70
70
|
worker_automate_hub/tasks/jobs/extracao_fechamento_contabil.py,sha256=jSoDGT6SU_5PKItpLQJyJIGrFAwYFNawO9vVNhjovIw,19557
|
71
|
-
worker_automate_hub/tasks/jobs/extracao_fechamento_emsys.py,sha256=
|
71
|
+
worker_automate_hub/tasks/jobs/extracao_fechamento_emsys.py,sha256=ueYevtUf0Tdr60VdXQiBmqbrQRmixQ3ze0GVYJmzFEg,21418
|
72
72
|
worker_automate_hub/tasks/jobs/fechar_conexao_rdp.py,sha256=UWAKCS2dbfgDlSQOBdjmVJXfD1MMuUrOi3weDgB0CAc,5718
|
73
73
|
worker_automate_hub/tasks/jobs/fidc_exportacao_docs_portal_b2b.py,sha256=SOs2mORBJqHs089ApbLaPJVRXM7wWhf0e99URXqPlpQ,15020
|
74
74
|
worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py,sha256=zu92tRCvKPK0U6IGGF28ST-kERohJcNbys-DWk0tIco,12555
|
@@ -96,7 +96,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
|
|
96
96
|
worker_automate_hub/utils/util.py,sha256=_pgZOFWgXoov6WPbqyRTDVXJCRFfucYB3gb9swzU7bo,198281
|
97
97
|
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=wmnpuOesmPSryZszmapa37b9YNC0E2MkeDYnbwr-0rU,33315
|
98
98
|
worker_automate_hub/worker.py,sha256=axdrr1xLTjWEyWfcyH3OCSpPTsyzck_fL_0u1DBLjvw,6525
|
99
|
-
worker_automate_hub-0.5.
|
100
|
-
worker_automate_hub-0.5.
|
101
|
-
worker_automate_hub-0.5.
|
102
|
-
worker_automate_hub-0.5.
|
99
|
+
worker_automate_hub-0.5.617.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
100
|
+
worker_automate_hub-0.5.617.dist-info/METADATA,sha256=FriZI6RRGiNISe02qNVHmperXqms245hbFjYdQw3HK8,3049
|
101
|
+
worker_automate_hub-0.5.617.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
102
|
+
worker_automate_hub-0.5.617.dist-info/RECORD,,
|
File without changes
|
{worker_automate_hub-0.5.616.dist-info → worker_automate_hub-0.5.617.dist-info}/entry_points.txt
RENAMED
File without changes
|