worker-automate-hub 0.4.438__py3-none-any.whl → 0.4.439__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- worker_automate_hub/utils/util.py +18 -3
- {worker_automate_hub-0.4.438.dist-info → worker_automate_hub-0.4.439.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.4.438.dist-info → worker_automate_hub-0.4.439.dist-info}/RECORD +5 -5
- {worker_automate_hub-0.4.438.dist-info → worker_automate_hub-0.4.439.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.4.438.dist-info → worker_automate_hub-0.4.439.dist-info}/entry_points.txt +0 -0
@@ -248,6 +248,14 @@ async def find_element_center(image_path, region_to_look, timeout):
|
|
248
248
|
|
249
249
|
def type_text_into_field(text, field, empty_before, chars_to_empty):
|
250
250
|
try:
|
251
|
+
try:
|
252
|
+
app = Application().connect(class_name="TFrmMenuPrincipal", timeout=60)
|
253
|
+
main_window = app["TFrmMenuPrincipal"]
|
254
|
+
|
255
|
+
main_window.set_focus()
|
256
|
+
except:
|
257
|
+
console.print(f"Erro ao conectar na janela, tentando seguir..")
|
258
|
+
|
251
259
|
if empty_before:
|
252
260
|
field.type_keys("{BACKSPACE " + chars_to_empty + "}", with_spaces=True)
|
253
261
|
|
@@ -2176,7 +2184,7 @@ async def select_documento_type(document_type: str) -> RpaRetornoProcessoDTO:
|
|
2176
2184
|
RpaRetornoProcessoDTO: Retorna um objeto com informações sobre o status do processo.
|
2177
2185
|
"""
|
2178
2186
|
try:
|
2179
|
-
app = Application().connect(class_name="TFrmNotaFiscalEntrada")
|
2187
|
+
app = Application().connect(class_name="TFrmNotaFiscalEntrada", timeout=60)
|
2180
2188
|
main_window = app["TFrmNotaFiscalEntrada"]
|
2181
2189
|
|
2182
2190
|
main_window.set_focus()
|
@@ -2374,11 +2382,18 @@ async def error_after_xml_imported() -> RpaRetornoProcessoDTO:
|
|
2374
2382
|
capturar_proxima_mensagem = True
|
2375
2383
|
|
2376
2384
|
elif capturar_proxima_mensagem:
|
2377
|
-
|
2385
|
+
if "duplicate key" in control_text:
|
2386
|
+
return RpaRetornoProcessoDTO(
|
2378
2387
|
sucesso=False,
|
2379
|
-
retorno=f"
|
2388
|
+
retorno=f"Não foi possivel seguir devido ao numero da chave ja existir no banco de dados, erro: {control_text}... \n",
|
2380
2389
|
status=RpaHistoricoStatusEnum.Falha,
|
2381
2390
|
)
|
2391
|
+
else:
|
2392
|
+
return RpaRetornoProcessoDTO(
|
2393
|
+
sucesso=False,
|
2394
|
+
retorno=f"Erro do banco de dados: {control_text} \n",
|
2395
|
+
status=RpaHistoricoStatusEnum.Falha,
|
2396
|
+
)
|
2382
2397
|
|
2383
2398
|
elif "XML já foi importado anteriormente" in control_text:
|
2384
2399
|
return RpaRetornoProcessoDTO(
|
@@ -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=
|
68
|
+
worker_automate_hub/utils/util.py,sha256=VwvoSG2dNaukxzFNANMU3LtqPoKvTv-x_dUJJGbpQqs,121792
|
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.
|
72
|
-
worker_automate_hub-0.4.
|
73
|
-
worker_automate_hub-0.4.
|
74
|
-
worker_automate_hub-0.4.
|
71
|
+
worker_automate_hub-0.4.439.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
72
|
+
worker_automate_hub-0.4.439.dist-info/METADATA,sha256=1DPsMflrWAemziZFs6VL-WsuIvSMXFyQn3PuQicKWq4,2895
|
73
|
+
worker_automate_hub-0.4.439.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
74
|
+
worker_automate_hub-0.4.439.dist-info/RECORD,,
|
File without changes
|
{worker_automate_hub-0.4.438.dist-info → worker_automate_hub-0.4.439.dist-info}/entry_points.txt
RENAMED
File without changes
|