feat wait a little more

This commit is contained in:
Urko 2023-07-02 20:16:34 +02:00
parent c09933767b
commit fc35559ab8
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ func (p ArcherAx50) Login(user, pass string) error {
}
func (p ArcherAx50) SwitchWIFI() error {
time.Sleep(time.Second * 1)
time.Sleep(time.Millisecond * 1350)
pageURL := p.page.MustInfo().URL
log.Println("p.page.MustInfo().URL", pageURL)
@ -67,7 +67,7 @@ func (p ArcherAx50) SwitchWIFI() error {
wirelessTab.MustClick()
log.Println(p.wirelessTab, "DONE")
time.Sleep(time.Millisecond * 750)
time.Sleep(time.Millisecond * 1250)
checked := p.page.MustEvaluate(&rod.EvalOptions{
JS: `() => {
return document.getElementById('` + p.chkWifi2gID + `').checked;