browser.contentDocument is undefined (JsshSocket::JSTypeError) when popup is closed
I have a facebook connect login popup to be tested using watir. 

Following is my code

> def login( browser, email, password )
    browser.link(:text, "Connect with Facebook").click
    browser_two = Watir::Browser.attach(:title, "Login | Facebook")
    browser_two.text_field(:id, "email").set email
    browser_two.text_field(:id, "pass").set password
    browser_two.button(:value, "Login").click
end

I get browser.contentDocument is undefined error when the login click is done. (After clicking, the popup closes automatically). How to correct this?

I use firefox 3.6 and ubuntu

Thanks
browser.contentDocument is undefined (JsshSocket::JSTypeError) when popup is closed
===

I have a facebook connect login popup to be tested using watir. 

Following is my code

> def login( browser, email, password )
    browser.link(:text, "Connect with Facebook").click
    browser_two = Watir::Browser.attach(:title, "Login | Facebook")
    browser_two.text_field(:id, "email").set email
    browser_two.text_field(:id, "pass").set password
    browser_two.button(:value, "Login").click
end

I get browser.contentDocument is undefined error when the login click is done. (After clicking, the popup closes automatically). How to correct this?

I use firefox 3.6 and ubuntu

Thanks