-
Notifications
You must be signed in to change notification settings - Fork 45
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
Trying to controll tabs #11
Comments
A couple of things:
I have added a couple of new options to my test application:
Try my test application and see how it works. If you still have problem you should send some more details information (the list of open tabs, what tab you are trying to activate, etc.) |
Thank you @raff. I have tried your example and that works. However this still does not do what I expect. I am just trying to open a new tab with google and immediately change it's content to cnn. (It looks quite awkward to get list of Tabs when I just received Tab fro the NewTab method. Besides there is no documentation that restricts the use of the received Tab. Maybe this is just another bug... I hope you get me on this.) // create new tab
tab, err := remote.NewTab("https://www.google.com")
log.Printf("%v\n", tab)
// activate created tab
err = remote.ActivateTab(tab)
if err != nil {
panic(err)
}
// navigate created tab - navigates wrong tab
_, err = remote.Navigate("https://www.cnn.com")
if err != nil {
panic(err)
} |
Ok, I think I know what's going on. It looks like when switching between tabs I also needs to connect to the correct websocket (and disconnect from the previous one). Will try to get it fixed as soon as possible. |
Please update and try again. Let me know if this works and/or if you find any other problem. |
Now it's opening in the same tab as expected. Tested. OK. |
Hello, I am trying to follow/use your example to open link in a newly activated tab. However link always open in already existing tab. What I am doing wrong?
The text was updated successfully, but these errors were encountered: