This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.jruby.Ruby.getCacheMap()Lorg/jruby/runtime/CacheMap; (Java::JavaLang::NoSuchMethodError) | |
MixologyService.clearCache(MixologyService.java:116) | |
MixologyService.add_module(MixologyService.java:84) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scenario: Last name is required | |
Given I am on the page to be tested | |
When I leave the last name blank | |
Then I should see an error message with "Last name is required" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'watir-webdriver' | |
require 'selenium-webdriver' | |
def wait_for_new_handle(original_handles, driver) | |
handles = nil | |
wait = Selenium::WebDriver::Wait.new(:timeout => 10) | |
wait.until do | |
handles = driver.wd.window_handles | |
handles.size == original_handles.size + 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'watir-webdriver' | |
require 'selenium-webdriver' | |
def wait_for_new_handle(original_handles, driver) | |
handles = nil | |
wait = Selenium::WebDriver::Wait.new(:timeout => 10) | |
wait.until do | |
handles = driver.wd.window_handles | |
handles.size == original_handles.size + 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module PageHeader | |
include PageObject | |
text_field(:header_search, :id => 'header_search') | |
h1(:page_title, :index => 0) | |
end | |
module ErrorMessages | |
include PageObject |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'selenium-webdriver' | |
require 'pp' | |
dir = Dir.mktmpdir("modal-dialog") | |
htmls = DATA.read.scan(/--- (.+?) ---\n(.+?)(?=---|\z)/m) | |
htmls.each do |name, content| | |
File.open(File.join(dir, name), "w") { |io| io << content} | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Invalid gemspec in [C:/Ruby187/lib/ruby/gems/1.8/specifications/json_pure-1.5.4.gemspec]: invalid date format in specifi | |
cation: "2011-08-31 00:00:00.000000000Z" | |
Invalid gemspec in [C:/Ruby187/lib/ruby/gems/1.8/specifications/spruz-0.2.13.gemspec]: invalid date format in specificat | |
ion: "2011-08-17 00:00:00.000000000Z" | |
Invalid gemspec in [C:/Ruby187/lib/ruby/gems/1.8/specifications/watir-webdriver-0.3.2.gemspec]: invalid date format in s | |
pecification: "2011-08-18 00:00:00.000000000Z" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- frame_example.rb --- | |
require 'watir-webdriver' | |
browser = Watir::Browser.new :firefox | |
html = File.expand_path("#{File.dirname(__FILE__)}/nested_frames.html") | |
browser.goto "file://#{html}" | |
frame = browser.frame(:id => 'two').frame(:id => 'three').frame(:id => 'four').frame(:id => 'five') | |
frame.text_field(:id => 'text_field_id1').set('value1') | |
frame.text_field(:id => 'text_field_id2').set('value2') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fetching: iCuke-0.6.5.gem (100%) | |
Building native extensions. This could take a while... | |
ERROR: Error installing iCuke: | |
ERROR: Failed to build gem native extension. | |
"/Users/cheezy/.rvm/rubies/ruby-1.9.2-p290/bin/ruby" -rubygems /Users/cheezy/.rvm/gems/ruby-1.9.2-p290@global/gems/rake-0.9.2/bin/rake RUBYARCHDIR=/Users/cheezy/.rvm/gems/ruby-1.9.2-p290@page-object/gems/iCuke-0.6.5/lib RUBYLIBDIR=/Users/cheezy/.rvm/gems/ruby-1.9.2-p290@page-object/gems/iCuke-0.6.5/lib | |
cd .. && git submodule init | |
(in /Users/cheezy/.rvm/gems/ruby-1.9.2-p290@page-object/gems/iCuke-0.6.5/ext) | |
fatal: Not a git repository (or any of the parent directories): .git | |
rake aborted! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fails if the following block doesn't run | |
page.browser.windows.each do |win| | |
puts “title is #{win.title}” | |
end | |
page.browser.window(:url => /mripage\.asp/).use do | |
page.save_preferences | |
end |