worker-automate-hub 0.4.340__py3-none-any.whl → 0.4.341__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -318,17 +318,26 @@ async def login_emsys_fiscal(
318
318
  app = Application().connect(class_name="TFrmLoginModulo")
319
319
  main_window = app["Login"]
320
320
 
321
- main_window.set_focus()
322
-
323
- edit_password = main_window.child_window(class_name="TcxCustomInnerTextEdit", found_index=0)
321
+ user = config.get("user")
324
322
  password = config.get("pass")
325
- edit_password.set_edit_text(password)
326
323
 
324
+ if not user or not password:
325
+ return RpaRetornoProcessoDTO(
326
+ sucesso=False,
327
+ retorno=f"Erro: Não foi possivel obter as credencias para login",
328
+ status=RpaHistoricoStatusEnum.Falha,
329
+ )
330
+
331
+ main_window.set_focus()
327
332
  await worker_sleep(1)
328
333
  edit_user = main_window.child_window(class_name="TcxCustomInnerTextEdit", found_index=1)
329
- user = config.get("user")
330
334
  edit_user.set_edit_text(user)
331
335
 
336
+ await worker_sleep(2)
337
+ edit_password = main_window.child_window(class_name="TcxCustomInnerTextEdit", found_index=0)
338
+ edit_password.set_edit_text(password)
339
+
340
+
332
341
  await worker_sleep(2)
333
342
  pyautogui.press("enter")
334
343
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: worker-automate-hub
3
- Version: 0.4.340
3
+ Version: 0.4.341
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
@@ -64,10 +64,10 @@ worker_automate_hub/utils/get_creds_gworkspace.py,sha256=ZJ0IIEjM4IXIV9rwfbOZ1V1
64
64
  worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1rzT_xs,671
65
65
  worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
66
66
  worker_automate_hub/utils/updater.py,sha256=0LR6Xpe3HZk-xu-trH7vKRhP5FXp0nhp1qxtygE2Jps,7280
67
- worker_automate_hub/utils/util.py,sha256=v2N2Sr5dtW_k4GObh0FB5cKv64hRs-rTjKLeyMsKcdU,116963
67
+ worker_automate_hub/utils/util.py,sha256=O3gPOqUJOQBaxEGvjXlQRWxW76kPb5pJOizshzWP3cA,117264
68
68
  worker_automate_hub/utils/utils_nfe_entrada.py,sha256=4--3HDyWddT8vw2mBNY_-9IscvAQYBygwPIMiKvAG-w,27583
69
69
  worker_automate_hub/worker.py,sha256=vkl_x7gSo6nQlhSBLwRkGx6LEONnYptfBaGxOy1ZLsE,4634
70
- worker_automate_hub-0.4.340.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
71
- worker_automate_hub-0.4.340.dist-info/METADATA,sha256=B4ISmnZiKsXkmW6fRF_LU2nKGhAX1gPW_TOZHjYdu6M,2895
72
- worker_automate_hub-0.4.340.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
73
- worker_automate_hub-0.4.340.dist-info/RECORD,,
70
+ worker_automate_hub-0.4.341.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
71
+ worker_automate_hub-0.4.341.dist-info/METADATA,sha256=jgj9pNAhv1hZ4ybOk2SHnlIgFIDmhGpskryg4UuQcIY,2895
72
+ worker_automate_hub-0.4.341.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
73
+ worker_automate_hub-0.4.341.dist-info/RECORD,,