Class: Vapir::Firefox::Button

Inherits:
InputElement show all
Includes:
Button
Defined in:
lib/vapir-firefox/elements/button.rb

Overview

Description:

Class for Button element.

Instance Attribute Summary

Attributes inherited from Element

#firefox_socket

Instance Method Summary collapse

Methods inherited from Element

#click, #click_no_wait, #current_style_object, element_object_style, #fire_event, #initialize, #outer_html, #visible?, #wait

Methods included from Container

#element_by_xpath, #element_object_by_xpath, #element_objects_by_xpath, #elements_by_xpath, #extra_for_contained, #innermost_by_node, #innermost_matching_visible_text, #visible_text_nodes

Constructor Details

This class inherits a constructor from Vapir::Firefox::Element

Instance Method Details

#captionObject



17
18
19
# File 'lib/vapir-firefox/elements/button.rb', line 17

def caption
  value.empty? ? text : value
end