worker-automate-hub 0.5.712__py3-none-any.whl → 0.5.714__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.
@@ -2741,28 +2741,19 @@ async def itens_not_found_supplier(xml: str) -> RpaRetornoProcessoDTO:
2741
2741
 
2742
2742
  while i < max_attempts:
2743
2743
  try:
2744
- main_window = app["TMessageForm"]
2745
- console.print("Janela 'TMessageForm' encontrada!")
2746
- await worker_sleep(15)
2747
- janela_aguarde = await is_window_open_by_class(
2748
- "TFrmAguarde", "TFrmAguarde"
2749
- )
2750
- if janela_aguarde["IsOpened"] == True:
2751
- console.print(
2752
- "Aguardando tela de aguarde desaparecer ou conectar...\n"
2744
+ main_window = app.window(class_name="TMessageForm")
2745
+ if main_window.exists(timeout=3):
2746
+ console.print("Janela 'TMessageForm' encontrada!")
2747
+ await worker_sleep(5)
2748
+ janela_aguarde = await is_window_open_by_class(
2749
+ "TFrmAguarde", "TFrmAguarde"
2753
2750
  )
2754
- else:
2755
- try:
2756
- main_window = app["TMessageForm"]
2757
- if main_window.exists():
2758
- console.print("Janela 'TMessageForm' encontrada!")
2759
- break
2760
- except:
2761
- return RpaRetornoProcessoDTO(
2762
- sucesso=True,
2763
- retorno="Tela de aguardar carregada - Seguindo com andamento do processo (NCM).",
2764
- status=RpaHistoricoStatusEnum.Sucesso,
2751
+ if janela_aguarde["IsOpened"] == True:
2752
+ console.print(
2753
+ "Aguardando tela de aguarde desaparecer ou conectar...\n"
2765
2754
  )
2755
+ else:
2756
+ break
2766
2757
 
2767
2758
  await worker_sleep(3)
2768
2759
  except Exception as e:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.712
3
+ Version: 0.5.714
4
4
  Summary: Worker Automate HUB é uma aplicação para automatizar rotinas de RPA nos ambientes Argenta.
5
5
  Author: Joel Paim
6
6
  Requires-Python: >=3.12,<4.0
@@ -95,10 +95,10 @@ worker_automate_hub/utils/get_creds_gworkspace.py,sha256=ZJ0IIEjM4IXIV9rwfbOZ1V1
95
95
  worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1rzT_xs,671
96
96
  worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
97
97
  worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbVlwDl49Y,7972
98
- worker_automate_hub/utils/util.py,sha256=kEkBs8Y34gImSpznAAZ8l6TNmyNN7a8xXVmdqpOvLs4,207349
98
+ worker_automate_hub/utils/util.py,sha256=NAldkrInemf4dIFT_vPhAQebjjpRvAcCVyjCm3DepLY,206905
99
99
  worker_automate_hub/utils/utils_nfe_entrada.py,sha256=ERqMuyL7yf3ID5P6vHyFNh7N5LqNRduUKLY8069Oabo,37958
100
100
  worker_automate_hub/worker.py,sha256=axdrr1xLTjWEyWfcyH3OCSpPTsyzck_fL_0u1DBLjvw,6525
101
- worker_automate_hub-0.5.712.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
102
- worker_automate_hub-0.5.712.dist-info/METADATA,sha256=QMHl8c2LpCMHxOJKS2-NFka7XEGCClYjL-PmJAezQJY,3049
103
- worker_automate_hub-0.5.712.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
104
- worker_automate_hub-0.5.712.dist-info/RECORD,,
101
+ worker_automate_hub-0.5.714.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
102
+ worker_automate_hub-0.5.714.dist-info/METADATA,sha256=Hq6GC7Taa7Iuxixy81KGAlPBp6KUoigjSSQlS6O0QE4,3049
103
+ worker_automate_hub-0.5.714.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
104
+ worker_automate_hub-0.5.714.dist-info/RECORD,,