Compare commits

..

No commits in common. "bbc94e037513469155f7c1f8bf6c716b05df0ad9" and "db9f7495aa0ac04e527e989aff4dea4aab9c6fac" have entirely different histories.

1 changed files with 3 additions and 4 deletions

View File

@ -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 * 1850) time.Sleep(time.Millisecond * 1250)
p.page.MustEvaluate(&rod.EvalOptions{ p.page.MustEvaluate(&rod.EvalOptions{
JS: `() => { JS: `() => {
@ -38,10 +38,9 @@ func (p ArcherAx50) Login(user, pass string) error {
v.focus(); v.focus();
v.value="` + pass + `"; v.value="` + pass + `";
}) })
return log; return '';
}`, }`,
}) })
time.Sleep(time.Millisecond * 250) time.Sleep(time.Millisecond * 250)
log.Println(p.passwordID, "DONE") log.Println(p.passwordID, "DONE")
@ -52,7 +51,7 @@ func (p ArcherAx50) Login(user, pass string) error {
} }
login.MustClick() login.MustClick()
log.Println(p.loginButtonID, "DONE") log.Println(p.loginButtonID, "DONE")
time.Sleep(time.Millisecond * 1550) time.Sleep(time.Millisecond * 850)
return nil return nil
} }