polish logs
This commit is contained in:
parent
ad8ed58366
commit
bbc94e0375
|
@ -29,7 +29,7 @@ func NewArcherAx50(page *rod.Page) ArcherAx50 {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p ArcherAx50) Login(user, pass string) error {
|
func (p ArcherAx50) Login(user, pass string) error {
|
||||||
time.Sleep(time.Millisecond * 1250)
|
time.Sleep(time.Millisecond * 1850)
|
||||||
|
|
||||||
p.page.MustEvaluate(&rod.EvalOptions{
|
p.page.MustEvaluate(&rod.EvalOptions{
|
||||||
JS: `() => {
|
JS: `() => {
|
||||||
|
@ -38,9 +38,10 @@ func (p ArcherAx50) Login(user, pass string) error {
|
||||||
v.focus();
|
v.focus();
|
||||||
v.value="` + pass + `";
|
v.value="` + pass + `";
|
||||||
})
|
})
|
||||||
return '';
|
return log;
|
||||||
}`,
|
}`,
|
||||||
})
|
})
|
||||||
|
|
||||||
time.Sleep(time.Millisecond * 250)
|
time.Sleep(time.Millisecond * 250)
|
||||||
|
|
||||||
log.Println(p.passwordID, "DONE")
|
log.Println(p.passwordID, "DONE")
|
||||||
|
|
Loading…
Reference in New Issue