worker-automate-hub 0.4.430__py3-none-any.whl → 0.4.432__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.
@@ -2202,16 +2202,36 @@ async def select_documento_type(document_type: str) -> RpaRetornoProcessoDTO:
2202
2202
  "Clique select box, Tipo de documento realizado com sucesso, selecionando o tipo de documento...\n"
2203
2203
  )
2204
2204
  await worker_sleep(4)
2205
- set_combobox("||List", document_type)
2206
- console.print(
2207
- f"Tipo de documento '{document_type}', selecionado com sucesso...\n"
2208
- )
2205
+ try:
2206
+ set_combobox("||List", document_type)
2207
+ except Exception as e:
2208
+ console.log("Não foi possivel selecionar o tipo de documento via set combobox, realizando a alteração utilizando pyautogui write")
2209
+ pyautogui.write("CONTRATOS")
2210
+ await worker_sleep(2)
2211
+ pyautogui.hotkey("enter")
2212
+ await worker_sleep(2)
2213
+ pyautogui.write(document_type)
2214
+ await worker_sleep(2)
2209
2215
 
2210
- return RpaRetornoProcessoDTO(
2211
- sucesso=True,
2212
- retorno=f"Documento {document_type} selecionado com sucesso",
2213
- status=RpaHistoricoStatusEnum.Sucesso,
2214
- )
2216
+
2217
+ combo_box_tipo_documento = panel_TTabSheet.child_window(class_name="TDBIComboBox", found_index=1)
2218
+ document_type_selected = combo_box_tipo_documento.window_text()
2219
+ if document_type in document_type_selected:
2220
+ console.print(
2221
+ f"Tipo de documento '{document_type}', selecionado com sucesso...\n"
2222
+ )
2223
+
2224
+ return RpaRetornoProcessoDTO(
2225
+ sucesso=True,
2226
+ retorno=f"Documento {document_type} selecionado com sucesso",
2227
+ status=RpaHistoricoStatusEnum.Sucesso,
2228
+ )
2229
+ else:
2230
+ return RpaRetornoProcessoDTO(
2231
+ sucesso=False,
2232
+ retorno=f"Não foi possivel selecionar o tipo do documento, erro: {e} ",
2233
+ status=RpaHistoricoStatusEnum.Falha,
2234
+ )
2215
2235
 
2216
2236
  except Exception as e:
2217
2237
  return RpaRetornoProcessoDTO(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: worker-automate-hub
3
- Version: 0.4.430
3
+ Version: 0.4.432
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
@@ -65,10 +65,10 @@ worker_automate_hub/utils/get_creds_gworkspace.py,sha256=ZJ0IIEjM4IXIV9rwfbOZ1V1
65
65
  worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1rzT_xs,671
66
66
  worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
67
67
  worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbVlwDl49Y,7972
68
- worker_automate_hub/utils/util.py,sha256=JpRM3ltfGNkzui0RAjUK1FhWT3aWUjt3ljEyQez3Sbw,120156
68
+ worker_automate_hub/utils/util.py,sha256=nR3tADb5Rpfn8L1kScLhszEPGKjW3dQMdvIvriIA3tY,121109
69
69
  worker_automate_hub/utils/utils_nfe_entrada.py,sha256=7ju688sD52y30taGSm5rPMGdQyByUUwveLeKV4ImEiE,28401
70
70
  worker_automate_hub/worker.py,sha256=KDBU3L2kVobndrnN5coRZFTwVmBLKmPJjRv20sCo5Hc,4697
71
- worker_automate_hub-0.4.430.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
72
- worker_automate_hub-0.4.430.dist-info/METADATA,sha256=-6NtMELJDBpq4b74ct12zwLMJz1WQUUkOQZb2hh04LI,2895
73
- worker_automate_hub-0.4.430.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
74
- worker_automate_hub-0.4.430.dist-info/RECORD,,
71
+ worker_automate_hub-0.4.432.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
72
+ worker_automate_hub-0.4.432.dist-info/METADATA,sha256=4x1JD3ymlHODr1JpNHKvjosLvWbgOmSY6EV5tjnPmjg,2895
73
+ worker_automate_hub-0.4.432.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
74
+ worker_automate_hub-0.4.432.dist-info/RECORD,,