class WatirDrops::TrainingWheels

Public Instance Methods

use() { || ... } click to toggle source
# File lib/watir_drops/training_wheels.rb, line 57
def use
  new.tap { yield if block_given? }
end
visit(*args) { || ... } click to toggle source
# File lib/watir_drops/training_wheels.rb, line 50
def visit(*args)
  new.tap do |page|
    page.goto(*args)
    yield if block_given?
  end
end