Class: PageObject::Elements::Video
- Defined in:
- lib/page-object/elements/video.rb
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
Methods inherited from Media
#autoplay?, #duration, #ended?, #has_controls?, #loop?, #muted?, #paused?, #seeking?, #volume
Methods inherited from Element
#class_name, #click, #disabled?, #enabled?, #initialize, #inspect, #method_missing, plural_form, selenium_identifier_for, #style, watir_identifier_for
Methods included from NestedElements
Constructor Details
This class inherits a constructor from PageObject::Elements::Element
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PageObject::Elements::Element
Instance Method Details
#height ⇒ Object
5 6 7 8 |
# File 'lib/page-object/elements/video.rb', line 5 def height height = attribute(:height) return height.to_i if height end |
#width ⇒ Object
10 11 12 13 |
# File 'lib/page-object/elements/video.rb', line 10 def width width = attribute(:width) return width.to_i if width end |