Skip to content
Browse files

bug: not sure why sending keys to browser sometimes throws exception

  • Loading branch information...
1 parent b9dcf90 commit 54b0c6ef8ec8b534ab7fbfa910c9a4d573aa477b @zeljkofilipin committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/1/pacman.rb
View
2 lib/1/pacman.rb
@@ -1,6 +1,8 @@
def go(browser, direction)
output(direction)
browser.send_keys direction.to_sym
+rescue => e
+ p "!#{e}"
end
def output(direction)
puts ">#{direction}"

0 comments on commit 54b0c6e

Please sign in to comment.
Something went wrong with that request. Please try again.