Class: Watir::IFrame
- Inherits:
-
HTMLElement
- Object
- Element
- HTMLElement
- Watir::IFrame
- Defined in:
- lib/watir-webdriver/elements/iframe.rb,
lib/watir-webdriver/elements/html_elements.rb
Direct Known Subclasses
Constant Summary
Constants included from Atoms
Instance Method Summary collapse
-
#align ⇒ String
Value of align property.
-
#allow_fullscreen? ⇒ Boolean
Value of allowFullscreen property.
- #assert_exists ⇒ Object
-
#content_document ⇒ String
Value of contentDocument property.
-
#content_window ⇒ String
Value of contentWindow property.
- #execute_script(*args) ⇒ Object
-
#frame_border ⇒ String
Value of frameBorder property.
-
#height ⇒ String
Value of height property.
- #html ⇒ Object
- #locate ⇒ Object
-
#long_desc ⇒ String
Value of longDesc property.
-
#margin_height ⇒ String
Value of marginHeight property.
-
#margin_width ⇒ String
Value of marginWidth property.
-
#name ⇒ String
Value of name property.
-
#sandbox ⇒ String
Value of sandbox property.
-
#scrolling ⇒ String
Value of scrolling property.
-
#seamless? ⇒ Boolean
Value of seamless property.
-
#src ⇒ String
Value of src property.
-
#srcdoc ⇒ String
Value of srcdoc property.
- #switch_to! ⇒ Object
-
#width ⇒ String
Value of width property.
Methods inherited from HTMLElement
#access_key, #access_key_label, #command_checked?, #command_disabled?, #command_hidden?, #command_icon, #command_label, #command_type, #content_editable, #content_editable?, #context_menu, #dataset, #dir, #draggable?, #dropzone, #hidden?, #item_id, #item_prop, #item_ref, #item_scope?, #item_type, #item_value, #lang, #onabort, #onautocomplete, #onautocompleteerror, #onblur, #oncancel, #oncanplay, #oncanplaythrough, #onchange, #onclick, #onclose, #oncontextmenu, #oncuechange, #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, #onmousewheel, #onpause, #onplay, #onplaying, #onprogress, #onratechange, #onreset, #onresize, #onscroll, #onseeked, #onseeking, #onselect, #onshow, #onsort, #onstalled, #onsubmit, #onsuspend, #ontimeupdate, #ontoggle, #onvolumechange, #onwaiting, #properties, #spellcheck?, #tab_index, #title, #translate?
Methods inherited from Element
#==, #attribute_value, #browser, #class_name, #click, #double_click, #drag_and_drop_by, #drag_and_drop_on, #driver, #exists?, #fire_event, #flash, #focus, #focused?, #hash, #hover, #id, #initialize, #inner_html, #inspect, #outer_html, #parent, #present?, #right_click, #run_checkers, #select_text, #send_keys, #style, #tag_name, #text, #to_subtype, #value, #visible?, #wd
Methods included from AttributeHelper
#attribute, #attribute_list, #inherit_attributes_from, #method, #typed_attributes
Methods included from EventuallyPresent
#wait_until_present, #wait_while_present, #when_present
Methods included from Container
#a, #abbr, #abbrs, #address, #addresses, #animate, #animate_motion, #animate_motions, #animate_transform, #animate_transforms, #animates, #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, #cursor, #cursors, #data, #datalist, #datalists, #datas, #dd, #dds, #defs, #defss, #del, #dels, #desc, #descs, #details, #detailses, #dfn, #dfns, #dialog, #dialogs, #discard, #discards, #div, #divs, #dl, #dls, #dt, #dts, #element, #elements, #ellipse, #ellipses, #em, #embed, #embeds, #ems, #extract_selector, #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, #hgroup, #hgroups, #hidden, #hiddens, #hr, #hrs, #htmls, #i, #iframe, #iframes, #image, #images, #img, #imgs, #input, #inputs, #ins, #inses, #is, #kbd, #kbds, #keygen, #keygens, #label, #labels, #legend, #legends, #li, #line, #linear_gradient, #linear_gradients, #lines, #link, #links, #lis, #main, #mains, #map, #maps, #mark, #marker, #markers, #marks, #menu, #menuitem, #menuitems, #menus, #mesh_gradient, #mesh_gradients, #mesh_patch, #mesh_patches, #mesh_row, #mesh_rows, #meta, #metadata, #metadatas, #metas, #meter, #meters, #mpath, #mpaths, #nav, #navs, #noscript, #noscripts, #object, #objects, #ol, #ols, #optgroup, #optgroups, #option, #options, #output, #outputs, #p, #param, #params, #path, #paths, #pattern, #patterns, #polygon, #polygons, #polyline, #polylines, #pre, #pres, #progress, #progresses, #ps, #q, #qs, #radial_gradient, #radial_gradients, #radio, #radios, #rect, #rects, #rp, #rps, #rt, #rts, #rubies, #ruby, #s, #samp, #samps, #script, #scripts, #section, #sections, #select, #select_list, #select_lists, #selects, #set, #sets, #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 Atoms
Methods included from XpathSupport
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.
841 |
# File 'lib/watir-webdriver/elements/html_elements.rb', line 841 attribute(String, :align, :align) |
#allow_fullscreen? ⇒ Boolean
Returns value of allowFullscreen property.
836 |
# File 'lib/watir-webdriver/elements/html_elements.rb', line 836 attribute("Boolean", :allow_fullscreen?, :allowFullscreen) |
#assert_exists ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/watir-webdriver/elements/iframe.rb', line 18 def assert_exists if @selector.key? :element raise UnknownFrameException, "wrapping a WebDriver element as a Frame is not currently supported" end super end |
#content_document ⇒ String
Returns value of contentDocument property.
839 |
# File 'lib/watir-webdriver/elements/html_elements.rb', line 839 attribute(String, :content_document, :contentDocument) |
#content_window ⇒ String
Returns value of contentWindow property.
840 |
# File 'lib/watir-webdriver/elements/html_elements.rb', line 840 attribute(String, :content_window, :contentWindow) |
#execute_script(*args) ⇒ Object
34 35 36 |
# File 'lib/watir-webdriver/elements/iframe.rb', line 34 def execute_script(*args) browser.execute_script(*args) end |
#frame_border ⇒ String
Returns value of frameBorder property.
843 |
# File 'lib/watir-webdriver/elements/html_elements.rb', line 843 attribute(String, :frame_border, :frameBorder) |
#height ⇒ String
Returns value of height property.
838 |
# File 'lib/watir-webdriver/elements/html_elements.rb', line 838 attribute(String, :height, :height) |
#html ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/watir-webdriver/elements/iframe.rb', line 26 def html assert_exists # this will actually give us the innerHTML instead of the outerHTML of the <frame>, # but given the choice this seems more useful element_call { execute_atom(:getOuterHtml, @element.find_element(tag_name: "html")).strip } end |
#locate ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/watir-webdriver/elements/iframe.rb', line 4 def locate @parent.assert_exists locator = locator_class.new(@parent.wd, @selector.merge(tag_name: frame_tag), self.class.attribute_list) element = locator.locate element or raise UnknownFrameException, "unable to locate #{@selector[:tag_name]} using #{selector_string}" FramedDriver.new(element, driver) end |
#long_desc ⇒ String
Returns value of longDesc property.
844 |
# File 'lib/watir-webdriver/elements/html_elements.rb', line 844 attribute(String, :long_desc, :longDesc) |
#margin_height ⇒ String
Returns value of marginHeight property.
845 |
# File 'lib/watir-webdriver/elements/html_elements.rb', line 845 attribute(String, :margin_height, :marginHeight) |
#margin_width ⇒ String
Returns value of marginWidth property.
846 |
# File 'lib/watir-webdriver/elements/html_elements.rb', line 846 attribute(String, :margin_width, :marginWidth) |
#name ⇒ String
Returns value of name property.
833 |
# File 'lib/watir-webdriver/elements/html_elements.rb', line 833 attribute(String, :name, :name) |
#sandbox ⇒ String
Returns value of sandbox property.
834 |
# File 'lib/watir-webdriver/elements/html_elements.rb', line 834 attribute(String, :sandbox, :sandbox) |
#scrolling ⇒ String
Returns value of scrolling property.
842 |
# File 'lib/watir-webdriver/elements/html_elements.rb', line 842 attribute(String, :scrolling, :scrolling) |
#seamless? ⇒ Boolean
Returns value of seamless property.
835 |
# File 'lib/watir-webdriver/elements/html_elements.rb', line 835 attribute("Boolean", :seamless?, :seamless) |
#src ⇒ String
Returns value of src property.
831 |
# File 'lib/watir-webdriver/elements/html_elements.rb', line 831 attribute(String, :src, :src) |
#srcdoc ⇒ String
Returns value of srcdoc property.
832 |
# File 'lib/watir-webdriver/elements/html_elements.rb', line 832 attribute(String, :srcdoc, :srcdoc) |
#switch_to! ⇒ Object
14 15 16 |
# File 'lib/watir-webdriver/elements/iframe.rb', line 14 def switch_to! locate.send :switch! end |
#width ⇒ String
Returns value of width property.
837 |
# File 'lib/watir-webdriver/elements/html_elements.rb', line 837 attribute(String, :width, :width) |