Skip to content
Browse files

wait until pacman appears

  • Loading branch information...
1 parent e89f707 commit b9dcf906d0a501aa6166e6e53bd254fb924a417a @zeljkofilipin committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/1/pacman.rb
View
2 lib/1/pacman.rb
@@ -18,7 +18,7 @@ def pacman_horizontal_position(browser) # 8-left, 448-right
pacman_html(browser).split("left: ")[1].split("px")[0].to_i
end
def pacman_html(browser)
- browser.div(:id => "actor0").html
+ browser.div(:id => "actor0").when_present.html
end
def score(browser)
score = []

0 comments on commit b9dcf90

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