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

element "selector" is not reliable #85

Closed
lefthandedgoat opened this issue Jul 29, 2013 · 2 comments
Closed

element "selector" is not reliable #85

lefthandedgoat opened this issue Jul 29, 2013 · 2 comments
Labels

Comments

@lefthandedgoat
Copy link
Owner

getting exception on .head of private find when element does not exist. It should find stuff reliably

@lefthandedgoat
Copy link
Owner Author

let element cssSelector =
waitFor (fun _ ->
let elems = elements cssSelector
if elems.Length = 0 then false else true
)
canopy.core.element cssSelector

let elementWithin cssSelector e =
waitFor (fun _ ->
let elems = elementsWithin cssSelector e
if elems.Length = 0 then false else true
)
canopy.core.elementWithin cssSelector e

@lefthandedgoat
Copy link
Owner Author

Fixed in canopy 0.9.3 which is now available on github

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

No branches or pull requests

1 participant