Ajitesh Srinetra wrote:
> Hi all
>
> In My testcases I created a wrapper around Watir.rb
>
> def login(ie,username,password)
>         ie.text_field(:name, "ranger_user[name]").set(username)
>         ie.text_field(:name, "ranger_user[password]").set(password)
>         ie.button(:name, "commit").click
>       sleep 2
>       return ie.frame("ifr_content")#returns the iframe object
>  end
>
> where login is the function called in my testcase .
>
> After that whenever the screen refreshes the object is lost.And all 
> other funtctions start failing.
>
> Do we need to modify the refresh method for this or there is any other 
> workaround.
Show us more code and i'll show you how to make it work. Specifically, 
you need to show some test code that uses the login method you've 
defined here.

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

Reply via email to