Skip to content

Commit

Permalink
Merge pull request #80 from skalinets/master
Browse files Browse the repository at this point in the history
Fix to #78
  • Loading branch information
lefthandedgoat committed Jun 8, 2013
2 parents 0716423 + 76cea18 commit 7ab1aa0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions canopy/canopy.fs
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ let private textOf (element : IWebElement) =
match element.TagName with
| "input" ->
element.GetAttribute("value")
| "textarea" ->
element.GetAttribute("value")
| "select" ->
let value = element.GetAttribute("value")
let options = Seq.toList (element.FindElements(By.TagName("option")))
Expand Down
7 changes: 6 additions & 1 deletion demotests/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ open runner

start firefox

let page = "http://lefthandedgoat.github.com/canopy/demo/amir.html"
let page = "http://skalinets.github.io/canopy/demo/amir.html"

context "demo tests"
before (fun _ -> url page
Expand All @@ -26,6 +26,11 @@ test(fun _ ->

click ".optin input"
click ".agree input"

"#address" == "The Big Screen"
"#city" == "Holywood"
"#state" == "CA"
"#zip" == "91601"
)

run ()
Expand Down

0 comments on commit 7ab1aa0

Please sign in to comment.