feat wait a little more
This commit is contained in:
parent
c09933767b
commit
fc35559ab8
|
@ -56,7 +56,7 @@ func (p ArcherAx50) Login(user, pass string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p ArcherAx50) SwitchWIFI() error {
|
func (p ArcherAx50) SwitchWIFI() error {
|
||||||
time.Sleep(time.Second * 1)
|
time.Sleep(time.Millisecond * 1350)
|
||||||
pageURL := p.page.MustInfo().URL
|
pageURL := p.page.MustInfo().URL
|
||||||
log.Println("p.page.MustInfo().URL", pageURL)
|
log.Println("p.page.MustInfo().URL", pageURL)
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ func (p ArcherAx50) SwitchWIFI() error {
|
||||||
wirelessTab.MustClick()
|
wirelessTab.MustClick()
|
||||||
log.Println(p.wirelessTab, "DONE")
|
log.Println(p.wirelessTab, "DONE")
|
||||||
|
|
||||||
time.Sleep(time.Millisecond * 750)
|
time.Sleep(time.Millisecond * 1250)
|
||||||
checked := p.page.MustEvaluate(&rod.EvalOptions{
|
checked := p.page.MustEvaluate(&rod.EvalOptions{
|
||||||
JS: `() => {
|
JS: `() => {
|
||||||
return document.getElementById('` + p.chkWifi2gID + `').checked;
|
return document.getElementById('` + p.chkWifi2gID + `').checked;
|
||||||
|
|
Loading…
Reference in New Issue