Skip to content

Instantly share code, notes, and snippets.

@llaskin
Created January 23, 2012 14:54
Show Gist options
  • Save llaskin/ad4d9854f2d325905949 to your computer and use it in GitHub Desktop.
Save llaskin/ad4d9854f2d325905949 to your computer and use it in GitHub Desktop.
actions = []
if a1.count == 1
actions[0] = a1[0]
end
if a2.count == 1
actions[1] = a2[0]
end
if a3.count == 1
actions[2] = a3[0]
end
actions.each{|action| puts action.text }
When I puts action.text
09:55:39.328802 ERROR: ./scripts/test.rb failed to complete due to a Syntax Error:
undefined method `text' for #<Array:0x55d0a00>
(text is a function that can be called on WrappedWebElement types)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment