Class: Capybara::UI::Role

Inherits:
Capybara::UI::Rails::Role show all
Extended by:
Widgets::DSL
Includes:
DSL
Defined in:
lib/capybara/ui/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, #double_click, #eventually, #has_widget?, #hover, #not_visible?, #right_click, #set, #submit, #value, #values, #visible?, #visit, #widget, #widgets

Methods inherited from Capybara::UI::Rails::Role

#initialize

Constructor Details

This class inherits a constructor from Capybara::UI::Rails::Role

Instance Method Details

#inspectObject


16
17
18
# File 'lib/capybara/ui/role.rb', line 16

def inspect
  self.class.name
end

#see?(name, *args) ⇒ Boolean

Returns:

  • (Boolean)

8
9
10
11
12
13
14
# File 'lib/capybara/ui/role.rb', line 8

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