worker-automate-hub 0.4.431__py3-none-any.whl → 0.4.432__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -2206,17 +2206,32 @@ async def select_documento_type(document_type: str) -> RpaRetornoProcessoDTO:
2206
2206
  set_combobox("||List", document_type)
2207
2207
  except Exception as e:
2208
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)
2209
2213
  pyautogui.write(document_type)
2214
+ await worker_sleep(2)
2210
2215
 
2211
- console.print(
2212
- f"Tipo de documento '{document_type}', selecionado com sucesso...\n"
2213
- )
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
+ )
2214
2223
 
2215
- return RpaRetornoProcessoDTO(
2216
- sucesso=True,
2217
- retorno=f"Documento {document_type} selecionado com sucesso",
2218
- status=RpaHistoricoStatusEnum.Sucesso,
2219
- )
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
+ )
2220
2235
 
2221
2236
  except Exception as e:
2222
2237
  return RpaRetornoProcessoDTO(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: worker-automate-hub
3
- Version: 0.4.431
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=ouvOcyP5mLtkyRocvhdZ_cy5k2WgM9If-o681gEZTuY,120399
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.431.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
72
- worker_automate_hub-0.4.431.dist-info/METADATA,sha256=cY-qHYVCmlcYJ475KlCVz77-d8rT0QTq2RTMZSk_WuQ,2895
73
- worker_automate_hub-0.4.431.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
74
- worker_automate_hub-0.4.431.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,,