Class: Watir::Media

Inherits:
HTMLElement show all
Defined in:
lib/watir/elements/html_elements.rb

Direct Known Subclasses

Audio, Video

Constant Summary

Constants inherited from Element

Element::CASE_INSENSITIVE_ATTRIBUTES

Instance Attribute Summary

Attributes inherited from Element

#keyword, #selector

Instance Method Summary collapse

Methods inherited from HTMLElement

#accesskey, #content_editable, #content_editable?, #dataset, #dir, #draggable?, #hidden?, #innertext, #lang, #onabort, #onblur, #oncancel, #oncanplay, #oncanplaythrough, #onchange, #onclick, #onclose, #oncopy, #oncuechange, #oncut, #ondblclick, #ondrag, #ondragend, #ondragenter, #ondragexit, #ondragleave, #ondragover, #ondragstart, #ondrop, #ondurationchange, #onemptied, #onended, #onerror, #onfocus, #oninput, #oninvalid, #onkeydown, #onkeypress, #onkeyup, #onload, #onloadeddata, #onloadedmetadata, #onloadstart, #onmousedown, #onmouseenter, #onmouseleave, #onmousemove, #onmouseout, #onmouseover, #onmouseup, #onpaste, #onpause, #onplay, #onplaying, #onprogress, #onratechange, #onreset, #onresize, #onscroll, #onseeked, #onseeking, #onselect, #onshow, #onstalled, #onsubmit, #onsuspend, #ontimeupdate, #ontoggle, #onvolumechange, #onwaiting, #onwheel, #spellcheck?, #tabindex, #title, #translate?

Methods inherited from Element

#==, #attribute_list, #attribute_value, #attribute_values, #browser, #build, #cache=, #center, #class_name, #classes, #click, #click!, #double_click, #double_click!, #drag_and_drop_by, #drag_and_drop_on, #driver, #enabled?, #focused?, #hash, #height, #hover, #id, #in_viewport?, #initialize, #inspect, #locate, #located?, #location, #obscured?, #present?, #reset!, #right_click, #selector_string, #send_keys, #set, #shadow_root, #size, #stale?, #stale_in_context?, #style, #tag_name, #text, #to_subtype, #wd, #width

Methods included from AttributeHelper

#attribute, #attribute_list, #define_attribute, #define_boolean_attribute, #define_float_attribute, #define_int_attribute, #define_string_attribute, #inherit_attributes_from, #method, #typed_attributes

Methods included from SearchContext

#assert_exists, #check_condition, #element_call, #exists?, #unknown_exception, #wait_for_exists

Methods included from Scrolling

#scroll

Methods included from Locators::ClassHelpers

#class_from_string, #element_class_name, #element_matcher_class, #locator, #locator_class, #selector_builder, #selector_builder_class

Methods included from JSExecution

#execute_script, #fire_event, #flash, #focus, #inner_html, #inner_text, #outer_html, #select_text, #selected_text, #text_content

Methods included from Adjacent

#child, #children, #following_sibling, #following_siblings, #parent, #preceding_sibling, #preceding_siblings, #siblings

Methods included from Waitable

#wait_until, #wait_while

Methods included from Container

#a, #abbr, #abbrs, #address, #addresses, #area, #areas, #article, #articles, #as, #aside, #asides, #audio, #audios, #b, #base, #bases, #bdi, #bdis, #bdo, #bdos, #blockquote, #blockquotes, #body, #bodys, #br, #brs, #bs, #button, #buttons, #canvas, #canvases, #caption, #captions, #checkbox, #checkboxes, #circle, #circles, #cite, #cites, #code, #codes, #col, #colgroup, #colgroups, #cols, #data, #datalist, #datalists, #datas, #date_field, #date_fields, #date_time_field, #date_time_fields, #dd, #dds, #defs, #defss, #del, #dels, #desc, #descs, #details, #detailses, #dfn, #dfns, #dialog, #dialogs, #div, #divs, #dl, #dls, #dt, #dts, #element, #elements, #ellipse, #ellipses, #em, #embed, #embeds, #ems, #field_set, #field_sets, #fieldset, #fieldsets, #figcaption, #figcaptions, #figure, #figures, #file_field, #file_fields, #font, #fonts, #footer, #footers, #foreign_object, #foreign_objects, #form, #forms, #frame, #frames, #frameset, #framesets, #g, #gs, #h1, #h1s, #h2, #h2s, #h3, #h3s, #h4, #h4s, #h5, #h5s, #h6, #h6s, #head, #header, #headers, #heads, #hidden, #hiddens, #hr, #hrs, #html, #htmls, #i, #iframe, #iframes, #image, #images, #img, #imgs, #input, #inputs, #ins, #inses, #is, #kbd, #kbds, #label, #labels, #legend, #legends, #li, #line, #linear_gradient, #linear_gradients, #lines, #link, #links, #lis, #main, #mains, #map, #maps, #mark, #marker, #markers, #marks, #meta, #metadata, #metadatas, #metas, #meter, #meters, #nav, #navs, #noscript, #noscripts, #object, #objects, #ol, #ols, #optgroup, #optgroups, #option, #options, #output, #outputs, #p, #param, #params, #path, #paths, #pattern, #patterns, #picture, #pictures, #polygon, #polygons, #polyline, #polylines, #pre, #pres, #progress, #progresses, #ps, #q, #qs, #radial_gradient, #radial_gradients, #radio, #radio_set, #radios, #rb, #rbs, #rect, #rects, #rp, #rps, #rt, #rtc, #rtcs, #rts, #rubies, #ruby, #s, #samp, #samps, #script, #scripts, #section, #sections, #select, #select_list, #select_lists, #selects, #small, #smalls, #source, #sources, #span, #spans, #ss, #stop, #stops, #strong, #strongs, #style, #styles, #sub, #subs, #summaries, #summary, #sup, #sups, #svg, #svgs, #switch, #switches, #symbol, #symbols, #table, #tables, #tbody, #tbodys, #td, #tds, #template, #templates, #text_field, #text_fields, #text_path, #text_paths, #textarea, #textareas, #tfoot, #tfoots, #th, #thead, #theads, #ths, #time, #times, #title, #titles, #tr, #track, #tracks, #trs, #tspan, #tspans, #u, #ul, #uls, #us, #use, #uses, #var, #vars, #video, #videos, #view, #views, #wbr, #wbrs

Methods included from JSSnippets

#execute_js

Constructor Details

This class inherits a constructor from Watir::Element

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Watir::Element

Instance Method Details

#audiotracksString

Returns value of audioTracks property.

Returns:

  • (String)

    value of audioTracks property



542
# File 'lib/watir/elements/html_elements.rb', line 542

attribute(String, :audiotracks, :audioTracks)

#autoplay?Boolean

Returns value of autoplay property.

Returns:

  • (Boolean)

    value of autoplay property



536
# File 'lib/watir/elements/html_elements.rb', line 536

attribute("Boolean", :autoplay?, :autoplay)

#bufferedString

Returns value of buffered property.

Returns:

  • (String)

    value of buffered property



525
# File 'lib/watir/elements/html_elements.rb', line 525

attribute(String, :buffered, :buffered)

#controls?Boolean

Returns value of controls property.

Returns:

  • (Boolean)

    value of controls property



538
# File 'lib/watir/elements/html_elements.rb', line 538

attribute("Boolean", :controls?, :controls)

#crossoriginString

Returns value of crossOrigin property.

Returns:

  • (String)

    value of crossOrigin property



522
# File 'lib/watir/elements/html_elements.rb', line 522

attribute(String, :crossorigin, :crossOrigin)

#currentsrcString

Returns value of currentSrc property.

Returns:

  • (String)

    value of currentSrc property



521
# File 'lib/watir/elements/html_elements.rb', line 521

attribute(String, :currentsrc, :currentSrc)

#currenttimeFloat

Returns value of currentTime property.

Returns:

  • (Float)

    value of currentTime property



528
# File 'lib/watir/elements/html_elements.rb', line 528

attribute(Float, :currenttime, :currentTime)

#defaultmuted?Boolean

Returns value of defaultMuted property.

Returns:

  • (Boolean)

    value of defaultMuted property



541
# File 'lib/watir/elements/html_elements.rb', line 541

attribute("Boolean", :defaultmuted?, :defaultMuted)

#defaultplaybackrateFloat

Returns value of defaultPlaybackRate property.

Returns:

  • (Float)

    value of defaultPlaybackRate property



531
# File 'lib/watir/elements/html_elements.rb', line 531

attribute(Float, :defaultplaybackrate, :defaultPlaybackRate)

#durationFloat

Returns value of duration property.

Returns:

  • (Float)

    value of duration property



529
# File 'lib/watir/elements/html_elements.rb', line 529

attribute(Float, :duration, :duration)

#ended?Boolean

Returns value of ended property.

Returns:

  • (Boolean)

    value of ended property



535
# File 'lib/watir/elements/html_elements.rb', line 535

attribute("Boolean", :ended?, :ended)

#errorString

Returns value of error property.

Returns:

  • (String)

    value of error property



518
# File 'lib/watir/elements/html_elements.rb', line 518

attribute(String, :error, :error)

#loop?Boolean

Returns value of loop property.

Returns:

  • (Boolean)

    value of loop property



537
# File 'lib/watir/elements/html_elements.rb', line 537

attribute("Boolean", :loop?, :loop)

#muted?Boolean

Returns value of muted property.

Returns:

  • (Boolean)

    value of muted property



540
# File 'lib/watir/elements/html_elements.rb', line 540

attribute("Boolean", :muted?, :muted)

#networkstateInteger

Returns value of networkState property.

Returns:

  • (Integer)

    value of networkState property



523
# File 'lib/watir/elements/html_elements.rb', line 523

attribute(Integer, :networkstate, :networkState)

#paused?Boolean

Returns value of paused property.

Returns:

  • (Boolean)

    value of paused property



530
# File 'lib/watir/elements/html_elements.rb', line 530

attribute("Boolean", :paused?, :paused)

#playbackrateFloat

Returns value of playbackRate property.

Returns:

  • (Float)

    value of playbackRate property



532
# File 'lib/watir/elements/html_elements.rb', line 532

attribute(Float, :playbackrate, :playbackRate)

#playedString

Returns value of played property.

Returns:

  • (String)

    value of played property



533
# File 'lib/watir/elements/html_elements.rb', line 533

attribute(String, :played, :played)

#preloadString

Returns value of preload property.

Returns:

  • (String)

    value of preload property



524
# File 'lib/watir/elements/html_elements.rb', line 524

attribute(String, :preload, :preload)

#readystateInteger

Returns value of readyState property.

Returns:

  • (Integer)

    value of readyState property



526
# File 'lib/watir/elements/html_elements.rb', line 526

attribute(Integer, :readystate, :readyState)

#seekableString

Returns value of seekable property.

Returns:

  • (String)

    value of seekable property



534
# File 'lib/watir/elements/html_elements.rb', line 534

attribute(String, :seekable, :seekable)

#seeking?Boolean

Returns value of seeking property.

Returns:

  • (Boolean)

    value of seeking property



527
# File 'lib/watir/elements/html_elements.rb', line 527

attribute("Boolean", :seeking?, :seeking)

#srcString

Returns value of src property.

Returns:

  • (String)

    value of src property



519
# File 'lib/watir/elements/html_elements.rb', line 519

attribute(String, :src, :src)

#srcobjectString

Returns value of srcObject property.

Returns:

  • (String)

    value of srcObject property



520
# File 'lib/watir/elements/html_elements.rb', line 520

attribute(String, :srcobject, :srcObject)

#texttracksString

Returns value of textTracks property.

Returns:

  • (String)

    value of textTracks property



544
# File 'lib/watir/elements/html_elements.rb', line 544

attribute(String, :texttracks, :textTracks)

#videotracksString

Returns value of videoTracks property.

Returns:

  • (String)

    value of videoTracks property



543
# File 'lib/watir/elements/html_elements.rb', line 543

attribute(String, :videotracks, :videoTracks)

#volumeFloat

Returns value of volume property.

Returns:

  • (Float)

    value of volume property



539
# File 'lib/watir/elements/html_elements.rb', line 539

attribute(Float, :volume, :volume)