Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

can not switch parent frame in chrome #192

Open
chronos2015 opened this issue Aug 17, 2019 · 0 comments
Open

can not switch parent frame in chrome #192

chronos2015 opened this issue Aug 17, 2019 · 0 comments

Comments

@chronos2015
Copy link

When trying to return to the parent frame in chrome, the following error occurred.

failed to switch to parent frame: request unsuccessful: invalid argument: missing command parameters

So when I changed the code in the following file and executed it, it worked fine.

..\github.com\sclevine\agouti\api\session.go
before
func (s *Session) FrameParent() error {
return s.Send("POST", "frame/parent", nil, nil)
}

after
func (s *Session) FrameParent() error {
request := struct {
ID interface{} json:"id"
}{nil}
return s.Send("POST", "frame/parent", request, nil)
}

Thanks,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant