feat: add close page
This commit is contained in:
parent
857aec79e3
commit
7742a70f6c
|
@ -42,6 +42,8 @@ func (s switcher) SwitchWIFI() error {
|
|||
|
||||
page := browser.MustPage(s.config.Page)
|
||||
|
||||
defer page.Close()
|
||||
|
||||
username, err := page.Element(usernameID)
|
||||
if err != nil {
|
||||
return fmt.Errorf("page.Element %s: %s", userpasswordID, err)
|
||||
|
|
Loading…
Reference in New Issue