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

quit needs to close all browser #54

Closed
amirrajan opened this issue Sep 20, 2012 · 2 comments
Closed

quit needs to close all browser #54

amirrajan opened this issue Sep 20, 2012 · 2 comments

Comments

@amirrajan
Copy link
Collaborator

the quit() method needs to close all browser if there are multiple browsers open

@lefthandedgoat
Copy link
Owner

let mutable browsers = []
let start2 b =
start b
browsers <- browsers @ [browser]

let quit2 browser =
match box browser with
| :? OpenQA.Selenium.IWebDriver as b -> b.Close()
| _ -> browsers |> List.iter (fun b -> b.Close())

@lefthandedgoat
Copy link
Owner

added in 0.5.8

quit() closes all, quit myBrowser closes the specific instance

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

2 participants