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

Key: WTR-42
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Bret Pettichord
Reporter: Charley Baker
Votes: 0
Watchers: 0
Operations

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

Add interface to Watir class that allows default settings to be defined using a hash

Created: 01/May/06 09:46 AM   Updated: 28/Oct/08 05:19 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.6.0

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
Have a config file, that is accessed by an env variable, that sets common settings like:

enable_spinner=false
background=true
speed=0

these would then get read in at run time

Originally reported on Rubyforge: http://rubyforge.org/tracker/index.php?func=detail&aid=1837&group_id=104&atid=1999

 All   Comments   Work Log   Change History      Sort Order:
Bret Pettichord - 28/Jan/07 12:07 AM
We will need this when we support multiple browsers in 2.0

Bret Pettichord - 14/Oct/07 12:19 AM
Suggest this:

  IE.set_defaults :speed => :fast, :visible => false

This would make it easy to read in settings, say from a yaml file.

IE.defaults would return a hash of the defaults

Also, deprecate use of $HIDE_IE

Bret Pettichord - 28/Oct/08 05:19 PM
Implemented at IE.set_options. Note that this interface is now used as a general interface between Watir::Browser and any implementation.