Hi All,

I am using firewatir-1.6.2 to build a web automation framework.

During the development, I met one problem that when I used
FireWatir::Firefox instane to login our web page, I have to attach the
page again browser again so that I can click the object in logined
page.

The code looks like this
*********************************************************************************************
ff = FireWatir::Firefox.new
ff.goto(my_web_url)

ff.text_field(:id, "txt_login").set(username)
ff.text_field(:id, "txt_password").set(password)
ff.button(:id, "btn_login").click
sleep 5

ff.attach(:title, page_title)   #  without this step, ff.link
(:id,'logout_link_') can't be found

ff.link(:id,'logout_link_').click
*********************************************************************************************
Actually the page is not a new popup window, and if I use Watir::IE
instead, "attach" is not necessary.

Is there anyone know the reason?

Thank you

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to