[Wtr-development] [JIRA] Updated: (WTR-315) Firewatir does not accept options supplied through Watir::Browser
Charley Baker (JIRA)
watirjira at gmail.com
Wed Oct 27 15:42:26 EDT 2010
[ http://jira.openqa.org/browse/WTR-315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Charley Baker updated WTR-315:
Fix Version/s: (was: 1.6.7)
> Firewatir does not accept options supplied through Watir::Browser
> Key: WTR-315
> URL: http://jira.openqa.org/browse/WTR-315
> Project: Watir
> Issue Type: Bug
> Components: FireWatir
> Affects Versions: 1.6.2
> Environment: Ruby 1.8.6
> Watir 1.6.2
> On Windows XP
> Reporter: Alex Collins
> Fix For: Soon
> I think there should be an options() method on the Firefox class to support this, with this used for configuration options. FireWatir actually takes the options through the constructor method.
> Needs proper investigation.
> Needs method implemented and tests created, to ensure that options supplied through the Watir.options_file are correctly passed to FireWatir.
> From the email:
> I'm trying to override the :waitTime option that is seen on firewatir-1.6.2\lib\firewatir\firefox.rb by using an external .yml file to config my system.
> The easy way is just to modify Firefox.initialize and hard code the value (line 134 of firefox.rb), but it seems that setting the value via a yml config should be do'able too.
> Ideally, I would like to use something like this
> require 'Watir'
> Watir.options_file = 'Q:\\Ruby\\Data\\browser_options.yml'
> # New FF window appears with a 20 second connection timeout, instead of the normal 2 second timeout
> with the following optionfile settings
> browser: firefox
> waitTime: 20
> to load up all the options for use in FireFox - specifically set the default timeout for trying to connect to FireFox.
> I've done some investigation to see how the options are sent to FireWatir, but I'm afraid that I'm missing something. Also seeing if this is the long way around, or am I on the right track?
> Some things that I tried:
> Modified watir/browsers.rb to send in :options => [:waitTime] when using Firefox
> Modified watir/options.rb to add_choice named :waitTime of :type => :integer and :default => 10
> Modified firewater/Firefox.rb - initialize to puts waitTime - so I can see the current value
> I'm pretty sure that I need to find out how to send in :waitTime to Firefox.initialize, but I'm unsure on how to accomplish this.
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.openqa.org/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the Wtr-development