Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
Pruebas-RTO
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit cd62e2b1
authored
2024-11-04 18:28:38 -0300
by
Tu Nombre
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Carga de snaps
1 parent
e5bc68be
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
4 deletions
main.py
protected_static/buscador.js
protected_static/cargarapida.js
protected_static/historico.js
main.py
View file @
cd62e2b
...
@@ -353,6 +353,7 @@ def login(u, p, s):
...
@@ -353,6 +353,7 @@ def login(u, p, s):
def
gotolinea
(
driver_abs
,
answer
):
def
gotolinea
(
driver_abs
,
answer
):
driver
=
driver_abs
.
driver
driver
=
driver_abs
.
driver
#Aca encontrar nuemero de planilla
element
=
driver
.
find_element_by_xpath
(
'//*[@id="ui-id-5"]'
)
element
=
driver
.
find_element_by_xpath
(
'//*[@id="ui-id-5"]'
)
element
.
click
()
element
.
click
()
time
.
sleep
(
1
)
time
.
sleep
(
1
)
...
...
protected_static/buscador.js
View file @
cd62e2b
...
@@ -6,7 +6,8 @@ let pendingRequests = 0;
...
@@ -6,7 +6,8 @@ let pendingRequests = 0;
function
CargarLista
()
{
function
CargarLista
()
{
const
requestData
=
{
const
requestData
=
{
"token"
:
"sdñÑREgerqw3$E#]ÑgdfbversdfFfew435"
,
"token"
:
"sdñÑREgerqw3$E#]ÑgdfbversdfFfew435"
,
"url"
:
"https://hgt.hgt.com.ar/api_rto/diaria"
,
//"url": "https://hgt.hgt.com.ar/api_rto/diaria",
"url"
:
"https://validacion.hgtsa.com.ar/api_rto/diaria"
,
"clear"
:
true
,
"clear"
:
true
,
"params"
:
{
"params"
:
{
"ApiKey"
:
"sdñÑREgerqw3$E#]ÑgdfbversdfFfew435"
,
"ApiKey"
:
"sdñÑREgerqw3$E#]ÑgdfbversdfFfew435"
,
...
@@ -134,7 +135,8 @@ async function fetchChat() {
...
@@ -134,7 +135,8 @@ async function fetchChat() {
function
BuscarLista
(
fecha
,
dominio
)
{
function
BuscarLista
(
fecha
,
dominio
)
{
const
requestData
=
{
const
requestData
=
{
"token"
:
"sdñÑREgerqw3$E#]ÑgdfbversdfFfew435"
,
"token"
:
"sdñÑREgerqw3$E#]ÑgdfbversdfFfew435"
,
"url"
:
"https://hgt.hgt.com.ar/api_rto/buscador"
,
//"url": "https://hgt.hgt.com.ar/api_rto/buscador",
"url"
:
"https://validacion.hgtsa.com.ar/api_rto/buscador"
,
"clear"
:
true
,
"clear"
:
true
,
"params"
:
{
"params"
:
{
"ApiKey"
:
"sdñÑREgerqw3$E#]ÑgdfbversdfFfew435"
,
"ApiKey"
:
"sdñÑREgerqw3$E#]ÑgdfbversdfFfew435"
,
...
...
protected_static/cargarapida.js
View file @
cd62e2b
...
@@ -49,12 +49,24 @@ function usePlanillaCentValue(planillaCentValue) {
...
@@ -49,12 +49,24 @@ function usePlanillaCentValue(planillaCentValue) {
.
then
(
data
=>
{
.
then
(
data
=>
{
// Asume que el servidor devuelve una URL para la página generada
// Asume que el servidor devuelve una URL para la página generada
//window.location.href = data.url;
//window.location.href = data.url;
llendoTentativo
(
data
)
llendoTentativo
(
data
);
recuperandoSnap
(
data
);
})
})
.
catch
(
error
=>
{
.
catch
(
error
=>
{
console
.
log
(
'There has been a problem with your fetch operation:'
,
error
);
console
.
log
(
'There has been a problem with your fetch operation:'
,
error
);
});
});
}
}
function
recuperandoSnap
(
data
){
if
(
!
data
.
snaper
){
return
}
console
.
log
(
"Cargando snap"
)
const
objeto
=
JSON
.
parse
(
data
.
snap
);
const
snap
=
JSON
.
parse
(
objeto
.
data
);
//Limpio los datos del formulario
console
.
log
(
snap
)
window
.
populateFieldsFromJson
(
snap
)
}
function
llendoTentativo
(
data
)
{
function
llendoTentativo
(
data
)
{
//console.log(data)
//console.log(data)
...
...
protected_static/historico.js
View file @
cd62e2b
...
@@ -2,7 +2,8 @@ function CargarLista() {
...
@@ -2,7 +2,8 @@ function CargarLista() {
//API KET
//API KET
const
requestData
=
{
const
requestData
=
{
"token"
:
"sdñÑREgerqw3$E#]ÑgdfbversdfFfew435"
,
"token"
:
"sdñÑREgerqw3$E#]ÑgdfbversdfFfew435"
,
"url"
:
"https://hgt.hgt.com.ar/api_rto/diaria"
,
//"url": "https://hgt.hgt.com.ar/api_rto/diaria",
"url"
:
"https://validacion.hgtsa.com.ar/api_rto/diaria"
,
"clear"
:
true
,
"clear"
:
true
,
"params"
:
{
"params"
:
{
"ApiKey"
:
"sdñÑREgerqw3$E#]ÑgdfbversdfFfew435"
,
"ApiKey"
:
"sdñÑREgerqw3$E#]ÑgdfbversdfFfew435"
,
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment