Skip to content

Instantly share code, notes, and snippets.

@leviwilson
Created January 31, 2013 22:21
Show Gist options
  • Save leviwilson/4687171 to your computer and use it in GitHub Desktop.
Save leviwilson/4687171 to your computer and use it in GitHub Desktop.
example augmented list accessor
def list(name, locator)
define_method("click_#{name}_with_text") do |which_text|
platform.click_list_item_with_text(which_text)
end
end
class Notes
list(:notes, :id => "notesGridId")
end
on(Notes).click_notes_with_text("Description 1")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment