Compare commits

..

No commits in common. "62bda54d980b3a400f3c7c9eae61ef9eacf9b656" and "bf700eeeb3983dd36f76ae69bff91a91ce0b808f" have entirely different histories.

1 changed files with 5 additions and 6 deletions

View File

@ -29,7 +29,7 @@ func NewArcherAx50(page *rod.Page) ArcherAx50 {
}
func (p ArcherAx50) Login(user, pass string) error {
time.Sleep(time.Millisecond * 5550)
time.Sleep(time.Millisecond * 1850)
p.page.MustEvaluate(&rod.EvalOptions{
JS: `() => {
@ -38,7 +38,7 @@ func (p ArcherAx50) Login(user, pass string) error {
v.focus();
v.value="` + pass + `";
})
return '';
return log;
}`,
})
@ -57,7 +57,7 @@ func (p ArcherAx50) Login(user, pass string) error {
}
func (p ArcherAx50) SwitchWIFI() error {
time.Sleep(time.Millisecond * 1850)
time.Sleep(time.Millisecond * 1350)
pageURL := p.page.MustInfo().URL
log.Println("p.page.MustInfo().URL", pageURL)
@ -68,7 +68,7 @@ func (p ArcherAx50) SwitchWIFI() error {
wirelessTab.MustClick()
log.Println(p.wirelessTab, "DONE")
time.Sleep(time.Millisecond * 1850)
time.Sleep(time.Millisecond * 1250)
checked := p.page.MustEvaluate(&rod.EvalOptions{
JS: `() => {
return document.getElementById('` + p.chkWifi2gID + `').checked;
@ -84,7 +84,6 @@ func (p ArcherAx50) SwitchWIFI() error {
}`,
})
time.Sleep(time.Millisecond * 150)
log.Println(p.chkWifi2gID, "DONE")
saveButton, err := p.page.Element(p.saveButtonID)
if err != nil {
@ -93,7 +92,7 @@ func (p ArcherAx50) SwitchWIFI() error {
saveButton.MustClick()
log.Println(p.saveButtonID, "DONE")
time.Sleep(time.Millisecond * 5500)
time.Sleep(time.Millisecond * 1500)
return nil
}