Class: Dill::Role

Inherits:
Dill::Rails::Role show all
Extended by:
Widgets::DSL
Includes:
DSL
Defined in:
lib/dill/role.rb

Instance Attribute Summary

Attributes included from DSL

#widget_lookup_scope

Instance Method Summary collapse

Methods included from Widgets::DSL

form, list, widget

Methods included from DSL

#click, #document, #eventually, #has_widget?, #hover, #not_visible?, #set, #submit, #value, #values, #visible?, #visit, #widget, #widgets

Methods inherited from Dill::Rails::Role

#initialize

Constructor Details

This class inherits a constructor from Dill::Rails::Role

Instance Method Details

#inspectObject



15
16
17
# File 'lib/dill/role.rb', line 15

def inspect
  self.class.name
end

#see?(name, *args) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
10
11
12
13
# File 'lib/dill/role.rb', line 7

def see?(name, *args)
  if respond_to?("see_#{name}?")
    send("see_#{name}?", *args)
  else
    visible?(name, *args)
  end
end