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

Add switchToTab and closeTab #165

Closed
lefthandedgoat opened this issue Sep 12, 2014 · 1 comment
Closed

Add switchToTab and closeTab #165

lefthandedgoat opened this issue Sep 12, 2014 · 1 comment

Comments

@lefthandedgoat
Copy link
Owner

let switchToTab number =
let tabs = browser.WindowHandles;
browser.SwitchTo().Window(tabs.[(number - 1)]) |> ignore

let closeTab number =
switchToTab number
browser.Close()

@lefthandedgoat
Copy link
Owner Author

This is available now
https://www.nuget.org/packages/canopy/0.9.18

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

No branches or pull requests

1 participant