Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- numResults = /d+/.match(ie.div(:id, 'results_label').text)
- puts "Results found: "+numResults.to_s
- while(numResults > 0)
- .
- . some more code
- .
- Exception: undefined method `>' for #<MatchData:0x424c6d4>
- while(numResults.to_s.to_i > 0)
- while( !numResults.nil? ){
- }
- numResults.to_s.to_i
- while(numResults.to_i > 0)
Add Comment
Please, Sign In to add comment