sourcegraph / go-selenium

Selenium WebDriver client for Go
https://sourcegraph.com/github.com/sourcegraph/go-selenium
Other
367 stars 73 forks source link

No way to switch to frame parent #12

Closed pwaller closed 9 years ago

pwaller commented 9 years ago

I've done SwitchFrame() to switch into an iframe and perform some actions, but then I need to switch out of it again and do something from outside that frame.

The wisdom on the internet seems to be that I either need to pass an integer "0" to switch to the frame with the first index, or call /session/{id}/frame/parent, neither of which seem possible in go-selenium. Would a pull request be accepted which adds SwitchFrameParent()?

sqs commented 9 years ago

Yes, absolutely! Thanks :)