class TestCentricity::Video
Public Class Methods
new(name, parent, locator, context)
click to toggle source
Calls superclass method
# File lib/testcentricity_web/web_elements/video.rb, line 3 def initialize(name, parent, locator, context) super @type = :video end
Public Instance Methods
poster()
click to toggle source
Return video poster property
@return poster value @example
poster = video_player.poster
# File lib/testcentricity_web/web_elements/video.rb, line 38 def poster obj, = find_element object_not_found_exception(obj, :video) obj.native.attribute('poster') end
video_height()
click to toggle source
Return video Height property
@return [Integer] video height @example
height = video_player.video_height
# File lib/testcentricity_web/web_elements/video.rb, line 14 def video_height obj, = find_element object_not_found_exception(obj, :video) obj.native.attribute('videoHeight') end
video_width()
click to toggle source
Return video Width property
@return [Integer] video width @example
width = video_player.video_width
# File lib/testcentricity_web/web_elements/video.rb, line 26 def video_width obj, = find_element object_not_found_exception(obj, :video) obj.native.attribute('videoWidth') end