Hi,

I'm just starting to use Watir to test a rails website, which does not
support IE7.

If I setup a browser using

require 'watir-webdriver'
require 'selenium/server'
server = Selenium::Server.new("web/test/selenium-server-
standalone-2.0b1.jar", :background => true)
server.start
include Selenium

capabilities =
WebDriver::Remote::Capabilities.htmlunit(:javascript_enabled =>
true, :desired_capabilities => :firefox)
b = Watir::Browser.new(:remote, :url => 'http://127.0.0.1:4444/wd/
hub', :desired_capabilities => capabilities)


What user agent will my requests from this browser have?  It seems
like my app is detecting my browser as IE7 with this line of ruby
code.
    @is_ie7    = request.env["HTTP_USER_AGENT"] =~ /MSIE 7/ ? true :
false

How can I make my application think I'm not using IE7?  Is there some
capability that I'm not setting correctly?

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to