diff --git a/internal/providers/archer_ax50.go b/internal/providers/archer_ax50.go index e9a4e88..9b5ad51 100644 --- a/internal/providers/archer_ax50.go +++ b/internal/providers/archer_ax50.go @@ -29,7 +29,7 @@ func NewArcherAx50(page *rod.Page) ArcherAx50 { } func (p ArcherAx50) Login(user, pass string) error { - time.Sleep(time.Millisecond * 1850) + time.Sleep(time.Millisecond * 5550) p.page.MustEvaluate(&rod.EvalOptions{ JS: `() => { @@ -57,7 +57,7 @@ func (p ArcherAx50) Login(user, pass string) error { } func (p ArcherAx50) SwitchWIFI() error { - time.Sleep(time.Millisecond * 1350) + time.Sleep(time.Millisecond * 1850) 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 * 1250) + time.Sleep(time.Millisecond * 1850) checked := p.page.MustEvaluate(&rod.EvalOptions{ JS: `() => { return document.getElementById('` + p.chkWifi2gID + `').checked; @@ -84,6 +84,7 @@ 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 { @@ -92,7 +93,7 @@ func (p ArcherAx50) SwitchWIFI() error { saveButton.MustClick() log.Println(p.saveButtonID, "DONE") - time.Sleep(time.Millisecond * 1500) + time.Sleep(time.Millisecond * 5500) return nil }