| Class | Watir::IE |
| In: |
watir/contrib/ie-new-process.rb
watir/close_all.rb watir/ie-process.rb watir/ie.rb watir/process.rb |
| Parent: | Object |
| REVISION_STRING | = | '$Revision: 1263 $' | The revision number (according to Subversion) | |
| REVISION | = | $1 or 'unknown' | ||
| VERSION_SHORT | = | '1.5.5' | The Release number | |
| VERSION | = | VERSION_SHORT + '.' + REVISION | ||
| READYSTATE_COMPLETE | = | 4 | Used internally to determine when IE has finished loading a page | |
| HIGHLIGHT_COLOR | = | 'yellow' | The default color for highlighting objects as they are accessed. | |
| EMPTY_TAG_NAME | = | "DUMMY" | IE inserts some element whose tagName is empty and just acts as block level element Probably some IE method of cleaning things To pass the same to REXML we need to give some name to empty tagName |
| down_load_time | [R] | The time, in seconds, it took for the new page to load after executing the the last command |
| hwnd | [W] | |
| ie | [RW] | the OLE Internet Explorer object |
| logger | [RW] | access to the logger object |
| process_id | [W] | |
| speed | [R] | Whether the speed is :fast or :slow |
| url_list | [R] | this contains the list of unique urls that have been visited |
Return a Watir::IE object for an existing IE window. Window can be referenced by url, title, or window handle. Second argument can be either a string or a regular expression in the case of of :url or :title. IE.attach(:url, ‘www.google.com’) IE.attach(:title, ‘Google’) IE.attach(:hwnd, 528140) This method will not work when Watir/Ruby is run under a service (instead of a user).
Return an IE object that wraps the given window, typically obtained from Shell.Application.windows.
return internet explorer instance as specified. if none is found, return nil. arguments:
:url, url -- the URL of the IE browser window :title, title -- the title of the browser page :hwnd, hwnd -- the window handle of the browser window.
This method will not work when Watir/Ruby is run under a service (instead of a user).
this method is used to add an error checker that gets executed on every page load
Send key events to IE window. See www.autoitscript.com/autoit3/docs/appendix/SendKeys.htm for complete documentation on keys supported and syntax.
this method shows the name, id etc of the object that is currently active - ie the element that has focus its mostly used in irb when creating a script