Permalink
Browse files

Don't normalize options

  • Loading branch information...
1 parent ed55694 commit 5a583b94a88278722eeded5fe5e9217c3174a34d Anders Törnqvist committed Dec 17, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/xpath/html.rb
View
@@ -49,11 +49,11 @@ def select(locator, options={})
xpath = locate_field(descendant(:select), locator)
options[:options].each do |option|
- xpath = xpath[descendant(:option).string.n.equals(option)]
+ xpath = xpath[descendant(:option).equals(option)]
end if options[:options]
[options[:selected]].flatten.each do |option|
- xpath = xpath[descendant(:option)[attr(:selected)].string.n.equals(option)]
+ xpath = xpath[descendant(:option)[attr(:selected)].equals(option)]
end if options[:selected]
xpath

0 comments on commit 5a583b9

Please sign in to comment.