feat: add close page

This commit is contained in:
Urko 2023-03-25 08:19:57 +01:00
parent 857aec79e3
commit 7742a70f6c
1 changed files with 2 additions and 0 deletions

View File

@ -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)