feat triple c lick on save button archer

This commit is contained in:
Urko 2023-07-04 16:42:46 +02:00
parent 62bda54d98
commit cc7a59c109
1 changed files with 6 additions and 5 deletions

View File

@ -42,7 +42,7 @@ func (p ArcherAx50) Login(user, pass string) error {
}`,
})
time.Sleep(time.Millisecond * 250)
time.Sleep(time.Millisecond * 550)
log.Println(p.passwordID, "DONE")
@ -52,12 +52,11 @@ func (p ArcherAx50) Login(user, pass string) error {
}
login.MustClick()
log.Println(p.loginButtonID, "DONE")
time.Sleep(time.Millisecond * 1550)
time.Sleep(time.Millisecond * 4550)
return nil
}
func (p ArcherAx50) SwitchWIFI() error {
time.Sleep(time.Millisecond * 1850)
pageURL := p.page.MustInfo().URL
log.Println("p.page.MustInfo().URL", pageURL)
@ -84,16 +83,18 @@ func (p ArcherAx50) SwitchWIFI() error {
}`,
})
time.Sleep(time.Millisecond * 150)
time.Sleep(time.Millisecond * 550)
log.Println(p.chkWifi2gID, "DONE")
saveButton, err := p.page.Element(p.saveButtonID)
if err != nil {
return fmt.Errorf("page.Element %s: %s", p.saveButtonID, err)
}
saveButton.MustClick()
saveButton.MustClick()
saveButton.MustClick()
log.Println(p.saveButtonID, "DONE")
time.Sleep(time.Millisecond * 5500)
time.Sleep(time.Millisecond * 7500)
return nil
}