History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WTR-116
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Paul Rogers
Reporter: Paul Rogers
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Watir

Add IE.version method to report which version of IE is installed & being used (e.g. IE7)

Created: 15/Nov/06 11:41 PM   Updated: 03/Jan/08 10:29 PM
Component/s: None
Affects Version/s: 1.5.0/1.5.1
Fix Version/s: Future

Original Estimate: 3h Remaining Estimate: 3h Time Spent: Unknown


 Description  « Hide
I think, now that we have vista, ie7 etc, that the following would be
useful:

ie.browser_version => "IE7"
ie.os => "XP"
ie.os_language =>"en-us"

etc

as Im sure, many people like me now either need to test multiple browsers/os
or at least need to know what it was tested on.

I have most of the code, I just need to know if there are any comments on
method names etc?

-------- Charlie replied with

I'm not currently testing with IE 7 but most likely will be soon,
particularly since the upgrade is part of the system updates which
 means the user base will expand quickly. Can you add a JIRA task for
 this?
 
  While the browser version makes sense in context of the ie object,
 the os version and language don't. They'd make more sense to me in the
 context of the Watir module, possibly in their own class, Environment?
 Other thoughts?
 


 All   Comments   Work Log   Change History      Sort Order:
Bret Pettichord - 19/Dec/06 07:59 PM
ie.version makes sense to me (instead of ie.browser_version).

We already have Watir::VERSION for the version of Watir itself.

It seems to me that the commands to get the OS and OS-language should not be attached to the Watir::IE object.

Think of it this way. These commands should be just as useful if you were using FireWatir, so they should be general, and not specific to IE. I would be happy to see these commands in a separate module/class and placed in the contrib directory.

Are there more commands that tie to the browser?

Bret Pettichord - 19/Dec/06 08:01 PM
Actually IE.version might make more sense. (Class method instead of instance method). Are you detecting the version of the IE that you are attached to? Or which is installed on the system? Obviously, you can only have one installed, which is my point.

Bret Pettichord - 03/Jan/08 10:29 PM
Paul, could you please attach the code that you have to this ticket so that we can make a decision?