Class: Watir::Image
- Inherits:
-
HTMLElement
- Object
- Element
- HTMLElement
- Watir::Image
- Defined in:
- lib/watir/elements/image.rb,
lib/watir/elements/html_elements.rb
Constant Summary
Constants inherited from Element
Element::CASE_INSENSITIVE_ATTRIBUTES
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
-
#align ⇒ String
Value of align property.
-
#alt ⇒ String
Value of alt property.
-
#border ⇒ String
Value of border property.
-
#complete? ⇒ Boolean
Value of complete property.
-
#crossorigin ⇒ String
Value of crossOrigin property.
-
#currentsrc ⇒ String
Value of currentSrc property.
-
#hspace ⇒ Integer
Value of hspace property.
-
#ismap? ⇒ Boolean
Value of isMap property.
-
#loaded? ⇒ Boolean
Returns true if image is loaded.
-
#longdesc ⇒ String
Value of longDesc property.
-
#lowsrc ⇒ String
Value of lowsrc property.
-
#name ⇒ String
Value of name property.
-
#naturalheight ⇒ Integer
Value of naturalHeight property.
-
#naturalwidth ⇒ Integer
Value of naturalWidth property.
-
#referrerpolicy ⇒ String
Value of referrerPolicy property.
-
#sizes ⇒ String
Value of sizes property.
-
#src ⇒ String
Value of src property.
-
#srcset ⇒ String
Value of srcset property.
-
#usemap ⇒ String
Value of useMap property.
-
#vspace ⇒ Integer
Value of vspace property.
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
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
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
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
#align ⇒ String
Returns value of align property.
653 |
# File 'lib/watir/elements/html_elements.rb', line 653 attribute(String, :align, :align) |
#alt ⇒ String
Returns value of alt property.
638 |
# File 'lib/watir/elements/html_elements.rb', line 638 attribute(String, :alt, :alt) |
#border ⇒ String
Returns value of border property.
656 |
# File 'lib/watir/elements/html_elements.rb', line 656 attribute(String, :border, :border) |
#complete? ⇒ Boolean
Returns value of complete property.
648 |
# File 'lib/watir/elements/html_elements.rb', line 648 attribute("Boolean", :complete?, :complete) |
#crossorigin ⇒ String
Returns value of crossOrigin property.
642 |
# File 'lib/watir/elements/html_elements.rb', line 642 attribute(String, :crossorigin, :crossOrigin) |
#currentsrc ⇒ String
Returns value of currentSrc property.
649 |
# File 'lib/watir/elements/html_elements.rb', line 649 attribute(String, :currentsrc, :currentSrc) |
#hspace ⇒ Integer
Returns value of hspace property.
654 |
# File 'lib/watir/elements/html_elements.rb', line 654 attribute(Integer, :hspace, :hspace) |
#ismap? ⇒ Boolean
Returns value of isMap property.
645 |
# File 'lib/watir/elements/html_elements.rb', line 645 attribute("Boolean", :ismap?, :isMap) |
#loaded? ⇒ Boolean
Returns true if image is loaded.
11 12 13 14 15 |
# File 'lib/watir/elements/image.rb', line 11 def loaded? return false unless complete? element_call { execute_js(:isImageLoaded, @element) } end |
#longdesc ⇒ String
Returns value of longDesc property.
644 |
# File 'lib/watir/elements/html_elements.rb', line 644 attribute(String, :longdesc, :longDesc) |
#lowsrc ⇒ String
Returns value of lowsrc property.
652 |
# File 'lib/watir/elements/html_elements.rb', line 652 attribute(String, :lowsrc, :lowsrc) |
#name ⇒ String
Returns value of name property.
651 |
# File 'lib/watir/elements/html_elements.rb', line 651 attribute(String, :name, :name) |
#naturalheight ⇒ Integer
Returns value of naturalHeight property.
647 |
# File 'lib/watir/elements/html_elements.rb', line 647 attribute(Integer, :naturalheight, :naturalHeight) |
#naturalwidth ⇒ Integer
Returns value of naturalWidth property.
646 |
# File 'lib/watir/elements/html_elements.rb', line 646 attribute(Integer, :naturalwidth, :naturalWidth) |
#referrerpolicy ⇒ String
Returns value of referrerPolicy property.
650 |
# File 'lib/watir/elements/html_elements.rb', line 650 attribute(String, :referrerpolicy, :referrerPolicy) |
#sizes ⇒ String
Returns value of sizes property.
641 |
# File 'lib/watir/elements/html_elements.rb', line 641 attribute(String, :sizes, :sizes) |
#src ⇒ String
Returns value of src property.
639 |
# File 'lib/watir/elements/html_elements.rb', line 639 attribute(String, :src, :src) |
#srcset ⇒ String
Returns value of srcset property.
640 |
# File 'lib/watir/elements/html_elements.rb', line 640 attribute(String, :srcset, :srcset) |
#usemap ⇒ String
Returns value of useMap property.
643 |
# File 'lib/watir/elements/html_elements.rb', line 643 attribute(String, :usemap, :useMap) |
#vspace ⇒ Integer
Returns value of vspace property.
655 |
# File 'lib/watir/elements/html_elements.rb', line 655 attribute(Integer, :vspace, :vspace) |