lib/testcentricity_web/web_elements/media.rb
def track_source(track)
      obj, = find_element(visible = :all)
      object_not_found_exception(obj, @type)
      track_obj = obj.find(:css, "track:nth-of-type(#{track})", visible: :all, wait: 1)
      track_obj[:src]
    end
# Return srv property of specified text track of associated media
#
# @param track [Integer] index of requested track
# @return [String] src property of requested text track
# @example
#   track_src = media_player.track_source(2)
#
Return srv property of specified text track of associated media
Return srv property of specified text track of associated media
def track_source(track)
      obj, = find_element(visible = :all)
      object_not_found_exception(obj, @type)
      track_obj = obj.find(:css, "track:nth-of-type(#{track})", visible: :all, wait: 1)
      track_obj[:src]
    end
def track_source ( track ) obj , = find_element ( visible = :all ) object_not_found_exception ( obj , @type ) track_obj = obj . find ( :css , "track:nth-of-type(#{track})" , visible : :all , wait : 1 ) track_obj [ :src ] end
Return srv property of specified text track of associated media
Return srv property of specified text track of associated media
src property of requested text track
src property of requested text track
String
track
index of requested track
index of requested track
example
track_src = media_player.track_source(2)
track_src = media_player . track_source ( 2 )