Firefox method 'status' incorrectly using   #{WINDOW_VAR}  instead of   
#{window_var}
-------------------------------------------------------------------------------------

                 Key: WTR-441
                 URL: http://jira.openqa.org/browse/WTR-441
             Project: Watir
          Issue Type: Bug
          Components: FireWatir
    Affects Versions: 1.6.5
         Environment: Firefox any version
            Reporter: Joe DiMauro


The method 'status' in firefox.rb is referring to #{WINDOW_VAR}  instead of   
#{window_var}

Here's the error:
uninitialized constant FireWatir::Firefox::WINDOW_VAR
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:105:in
 `const_missing'
c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb:460:in 
`status'

Fix is to replace #{WINDOW_VAR} with #{window_var} in this block of code at the 
approx line number 460):


    #   Returns the Status of the page currently loaded in the browser from 
status bar.
    #
    # Output:
    #   Status of the page.
    #
    def status
      js_status = js_eval("#{window_var}.status")
      js_status.empty? ? js_eval("#{WINDOW_VAR}.XULBrowserWindow.statusText;") 
: js_status
    end




-- 
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

        
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to