WebDriver utility methods.
require 'webdriver_utils'
example
Example tests that use webdriver_utils. This repo is part of a larger angular_automation effort although it can be used standalone.
methods
method | description |
---|---|
sauce_user | returns ENV['SAUCE_USERNAME'] |
sauce_key | returns ENV['SAUCE_ACCESS_KEY'] |
sauce? | returns true if both sauce_user and sauce_key are true |
jenkins? | returns true if running on jenkins |
WebDriverUtils.require_all_pages | requires all page files from Rakefile root dir |
WebDriverUtils.define_page_methods | defines page methods |
wait | generic wait until truthy method |
WebDriverUtils::Wait.new | selenium webdriver wait with extra validation |