Class: Capybara::PageObject::Action

Inherits:
Element
  • Object
show all
Defined in:
lib/capybara-pageobject/action.rb

Instance Method Summary collapse

Methods inherited from Element

#initialize, #visible?

Constructor Details

This class inherits a constructor from Capybara::PageObject::Element

Instance Method Details

#disabled?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/capybara-pageobject/action.rb', line 6

def disabled?
  element[:disabled]
end

#to_sObject



10
11
12
# File 'lib/capybara-pageobject/action.rb', line 10

def to_s
  "'action: #{@name}'"
end