lib/testcentricity_web/web_elements/media.rb
# Return number of text tracks of associated media
#
# @return [Integer] number of text tracks
# @example
#   num_tracks = media_player.track_count
#
Return number of text tracks of associated media
Return number of text tracks of associated media
def track_count
      obj, = find_element(visible = :all)
      object_not_found_exception(obj, @type)
      page.execute_script('return arguments[0].textTracks.length', obj)
    end
def track_count obj , = find_element ( visible = :all ) object_not_found_exception ( obj , @type ) page . execute_script ( 'return arguments[0].textTracks.length' , obj ) end
Return number of text tracks of associated media
Return number of text tracks of associated media
number of text tracks
number of text tracks
Integer
example
None