Skip to content

Instantly share code, notes, and snippets.

@zealoushacker
Created July 13, 2011 17:13
Show Gist options
  • Save zealoushacker/1080775 to your computer and use it in GitHub Desktop.
Save zealoushacker/1080775 to your computer and use it in GitHub Desktop.
Row+column/value matcher
Then /^row (\d+) column (\d+) of table "([^"]*)" should be "([^"]*)"$/ do |row,column,table_id,value|
locator = "css=table##{table_id} tbody tr:nth-of-type(#{row}) td:nth-of-type(#{column})"
selenium.get_text(locator).should == value
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment