Class: PageObject::Elements::Video

Inherits:
Media show all
Defined in:
lib/page-object/elements/video.rb

Instance Attribute Summary

Attributes inherited from Element

#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

included

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

#heightObject



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

#widthObject



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