class Selenium::WebDriver::Support::Guards::GuardCondition
def initialize(name, condition = nil, &blk)
def initialize(name, condition = nil, &blk) @name = name @execution = if blk proc(&blk) else proc { |guarded| guarded.include?(condition) } end end
def satisfied?(guard)
def satisfied?(guard) list = Array(guard.guarded[@name]) list.empty? || @execution.call(list) end