Skip to content

Commit

Permalink
Fix #250 jquery selectors with ' in them
Browse files Browse the repository at this point in the history
  • Loading branch information
lefthandedgoat committed Mar 23, 2016
1 parent 2047ab0 commit 56ddcab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/canopy/finders.fs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ let private loadJQuery () =
let findByJQuery cssSelector _ =
try
loadJQuery()
let script = sprintf "return jQuery('%s').get();" cssSelector
let script = sprintf """return jQuery("%s").get();""" cssSelector
(browser :?> IJavaScriptExecutor).ExecuteScript(script) :?> ReadOnlyCollection<IWebElement> |> List.ofSeq
with | ex -> []

Expand Down
2 changes: 1 addition & 1 deletion tests/basictests/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -751,4 +751,4 @@ coverage testpage
coverage()
coverage "http://scrumy.com/silenter39delayed"

//quit()
quit()

0 comments on commit 56ddcab

Please sign in to comment.