Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jasonmci on github.
  • I am jasonmci (https://keybase.io/jasonmci) on keybase.
  • I have a public key ASApSEqXUyHOVSIdz1zFxc0rbssSjiy2mvw26tFd93_qlQo

To claim this, I am signing this object:

@jasonmci
jasonmci / cmdline_tools.rb
Last active December 21, 2015 01:08
Use IRB to work on WatirWebdriver automation, page objects, and mixins: 1) Start irb, 2) require './path/to/cmdline_tools.rb' 3) use load methods and unload methods as you add more page objects and other methods. Don't keep re-running automated tests to troubleshoot a problem.
require 'watir-webdriver'
require 'rspec'
# TODO: Remove the global variable
def load_mixins
# keep an array of mixins loaded
$m_constants = mixins
end
def load_pages
@jasonmci
jasonmci / dontdothis.rb
Created November 28, 2012 01:06
Now I have n(n-1) problems.
When /^I click(?:\sthe|\sa|\san)?\s(.*?)\sbutton(\son\s(quotes\s|offers\s|bookings\s|opportunities\s|tenant\s|assets\s|user\s|)?(?:grid|subtab)(?:\smenu|\spanel)?)?$/ do |title, where, what|