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

Make switch to tab more reliable #205

Closed
lefthandedgoat opened this issue Jul 23, 2015 · 0 comments
Closed

Make switch to tab more reliable #205

lefthandedgoat opened this issue Jul 23, 2015 · 0 comments

Comments

@lefthandedgoat
Copy link
Owner

let switchToTab number =
  waitFor
    (fun _ ->
      let number = number - 1
      let tabs = browser.WindowHandles;
      if tabs |> Seq.length >= number then
        browser.SwitchTo().Window(tabs.[number]) |> ignore
        true
      else
        false)
lefthandedgoat added a commit that referenced this issue Jul 31, 2015
Updated to latest selenium, fixes #205, adds better reporting
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