Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken 'for' loops in FindElements methods. #3

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions element.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@
return nil, err
}

for _, element := range elements {
element.SessionID = e.SessionID
element.client = e.client
for index, _ := range elements {

Check failure on line 77 in element.go

View workflow job for this annotation

GitHub Actions / build

File is not `gofmt`-ed with `-s` (gofmt)
elements[index].SessionID = e.SessionID
elements[index].client = e.client
}

return elements, nil
Expand Down
6 changes: 3 additions & 3 deletions session.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"errors"
"fmt"

"github.com/hupe1980/gowebdriver/bidi"

Check failure on line 9 in session.go

View workflow job for this annotation

GitHub Actions / build

import 'github.com/hupe1980/gowebdriver/bidi' is not allowed from list 'Main' (depguard)
)

type Session struct {
Expand Down Expand Up @@ -300,9 +300,9 @@
return nil, err
}

for _, element := range elements {
element.SessionID = s.ID
element.client = s.client
for index, _ := range elements {

Check failure on line 303 in session.go

View workflow job for this annotation

GitHub Actions / build

File is not `gofmt`-ed with `-s` (gofmt)
elements[index].SessionID = s.ID
elements[index].client = s.client
}

return elements, nil
Expand Down
6 changes: 3 additions & 3 deletions shadowroot.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
return nil, err
}

for _, element := range elements {
element.SessionID = s.ID
element.client = s.client
for index, _ := range elements {

Check failure on line 48 in shadowroot.go

View workflow job for this annotation

GitHub Actions / build

File is not `gofmt`-ed with `-s` (gofmt)
elements[index].SessionID = s.ID
elements[index].client = s.client
}

return elements, nil
Expand Down
Loading