Skip to content

Instantly share code, notes, and snippets.

@andreastt
Created March 8, 2011 17:31
Show Gist options
  • Save andreastt/860614 to your computer and use it in GitHub Desktop.
Save andreastt/860614 to your computer and use it in GitHub Desktop.
require 'operawatir/helper'
describe 'Selectors' do
it 'will select button by text' do
browser.goto 'data:text/html,<button><span>Test me</span></button>'
browser.button(:text, 'Test me').text.should include 'Test me'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment