This is so simple that I am stunned it is failing.

I am testing a very simply automated login sequence and essentially my
code does this:

require "watir"
user = "[email protected]" # phony email id
pswd = "qwerty"
br = Watir::Browser.new
br.goto("http://mysite.com";)
br.link(:id,"login-menu").click                             # click
the login menu
br.text_field(:id,"login-popup-user").set(user)     # enter the
username
br.text_field(:id,"login-popup-pswd").set(pswd)  # enter the password
br.link(:id,"login-popup-signin-button").click        # click the
submit link

When I run this (which runs it in IE), it works fine.

When I add the following line right after the "require" statement:

Watir::Browser.default = "firefox"

it now goes to Firefox 3.6, but when it enters the username, it only
types in the first 8-12 characters and then stops. As a result, the
login fails ("invalid email address" is the most common message).

I also tried changing this to use FireWatir but it failed in precisely
the same way.

Any ideas? HELP! (And thanks so much in advance!)

Best regards,

Jon Rosen

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

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: [email protected]
To unsubscribe: [email protected]

Reply via email to