Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'master' of git@github.com:redsquirrel/safariwatir
  • Loading branch information
Dave Hoover authored and Dave Hoover committed Aug 2, 2009
2 parents 2f99b5f + 9da0f6f commit 0a7da8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/safariwatir.rb
Expand Up @@ -35,8 +35,8 @@ def set_slow_speed

def speed=(how_fast)
case how_fast
when :fast : set_fast_speed
when :slow : set_slow_speed
when :fast then set_fast_speed
when :slow then set_slow_speed
else
raise ArgumentError, "Invalid speed: #{how_fast}"
end
Expand Down Expand Up @@ -481,9 +481,9 @@ def text_field(how, what)

def contains_text(what)
case what
when Regexp:
when Regexp
text =~ what
when String:
when String
text.index(what)
else
raise MissingWayOfFindingObjectException
Expand Down

0 comments on commit 0a7da8e

Please sign in to comment.