worker-automate-hub 0.5.703__py3-none-any.whl → 0.5.704__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.
@@ -578,7 +578,7 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
578
578
  button_cancela_item = (
579
579
  1194,
580
580
  745,
581
- ) # find_target_position(screenshot_path, "Cancela", 0, 0, 15)
581
+ )
582
582
  if button_cancela_item is not None:
583
583
  pyautogui.click(button_cancela_item)
584
584
  await worker_sleep(2)
@@ -629,9 +629,9 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
629
629
  status=RpaHistoricoStatusEnum.Falha, tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
630
630
  )
631
631
 
632
- await worker_sleep(8)
632
+ await worker_sleep(10)
633
633
 
634
- # Verifica mensagem de "Pré-Venda incluida com número: xxxxx"
634
+ # Verifica mensagem de "Pré-Venda incluida com número: xxxxx"
635
635
  console.print(
636
636
  "Verificando mensagem de 'Pré-Venda incluida com número: xxxxx'...\n"
637
637
  )
@@ -640,10 +640,10 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
640
640
  app = Application().connect(title="Informação")
641
641
  dialog = app.window(title="Informação")
642
642
 
643
- btn_yes = dialog.child_window(title="OK", class_name="Button")
644
- if btn_yes.exists():
643
+ btn_ok = dialog.child_window(title="OK", class_name="Button")
644
+ if btn_ok.exists():
645
645
  try:
646
- btn_yes.click()
646
+ btn_ok.click()
647
647
  await worker_sleep(3)
648
648
  console.print(
649
649
  "O botão OK de pré-venda incluída foi clicado com sucesso.",
@@ -660,7 +660,6 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
660
660
  status=RpaHistoricoStatusEnum.Falha, tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
661
661
  )
662
662
  else:
663
-
664
663
  console.print(
665
664
  "O Botão OK de pré-venda incluída não foi encontrado.", style="red"
666
665
  )
@@ -778,12 +777,11 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
778
777
  )
779
778
  await worker_sleep(5)
780
779
  try:
781
- app = Application().connect(class_name="TMessageForm")
782
- confirmada_pre_venda = app["TMessageForm"]
783
- confirmada_pre_venda_ok = confirmada_pre_venda.child_window(title="OK", class_name="TButton")
784
- if confirmada_pre_venda_ok.exists():
785
- if confirmada_pre_venda_ok.is_enabled():
786
- confirmada_pre_venda_ok.click()
780
+ app = Application().connect(title="Informação")
781
+ confirmada_pre_venda = app["Informação"]
782
+ confirmada_pre_venda_ok = confirmada_pre_venda.child_window(title="OK")
783
+ if confirmada_pre_venda_ok.exists() and confirmada_pre_venda_ok.is_enabled():
784
+ confirmada_pre_venda_ok.click()
787
785
  else:
788
786
  log_msg = f"Tela de pré-venda confirmada nao encontrada"
789
787
  return RpaRetornoProcessoDTO(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.703
3
+ Version: 0.5.704
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
@@ -86,7 +86,7 @@ worker_automate_hub/tasks/jobs/login_emsys_versao_especifica.py,sha256=_6CFh79ea
86
86
  worker_automate_hub/tasks/jobs/notas_faturamento_sap.py,sha256=p6tVE027FHHXBxt2sIDxqLInpf_0wS-8TcACnS34p7w,13961
87
87
  worker_automate_hub/tasks/jobs/playground.py,sha256=7vWDg9DwToHwGJ6_XOa8TQ6LmfRV5Qz2TaOV3q3P9sA,1918
88
88
  worker_automate_hub/tasks/jobs/sped_fiscal.py,sha256=Zsq-IwKxA0b2tikO6Rri4WXVj10jK-Jd0-gxk8yVBH0,31064
89
- worker_automate_hub/tasks/jobs/transferencias.py,sha256=pSI0VQDwGD3YKSLeDKiqK_P29nVHmPMcUeK2anhT2iU,44323
89
+ worker_automate_hub/tasks/jobs/transferencias.py,sha256=nfqGz_ZGu2VkejddlxyOmynShNdoqSqeN38v36q6bzQ,44207
90
90
  worker_automate_hub/tasks/task_definitions.py,sha256=oadXjZkmUge5Gek3ChCM-qriHRBMOrKW3u5HOXBNUQU,11957
91
91
  worker_automate_hub/tasks/task_executor.py,sha256=9dmLUlMpJOI7FhbaFE593TcWnDxBvuXbGVecs1aaJxE,5728
92
92
  worker_automate_hub/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -98,7 +98,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
98
98
  worker_automate_hub/utils/util.py,sha256=xA13nQqZglwkvfAKH18Unv4UoZUyvL58CacSrzUpYTw,206352
99
99
  worker_automate_hub/utils/utils_nfe_entrada.py,sha256=Yy4vDY5Wiw0uopy43IRm9jUgF5g1aFXMGVtG-GtH2g4,37524
100
100
  worker_automate_hub/worker.py,sha256=axdrr1xLTjWEyWfcyH3OCSpPTsyzck_fL_0u1DBLjvw,6525
101
- worker_automate_hub-0.5.703.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
102
- worker_automate_hub-0.5.703.dist-info/METADATA,sha256=M77pno394sxy7-b3CBEU1bjrPMWpx9UPm3HSf9YrIOc,3049
103
- worker_automate_hub-0.5.703.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
104
- worker_automate_hub-0.5.703.dist-info/RECORD,,
101
+ worker_automate_hub-0.5.704.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
102
+ worker_automate_hub-0.5.704.dist-info/METADATA,sha256=EkLgx0mi6RQCfhvhRXczCqcwWagUM-V33y2OpkeqTC0,3049
103
+ worker_automate_hub-0.5.704.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
104
+ worker_automate_hub-0.5.704.dist-info/RECORD,,