thanks Zeljko. It still logs in to mail application with  "uname" and "pwd" 
hence cannot login to yahoo mail. 
On Tuesday, October 2, 2012 1:53:45 AM UTC-7, Željko Filipin wrote: 
>
> On Tue, Oct 2, 2012 at 3:46 AM, Joe Fleck <joefl...@gmail.com<javascript:>> 
> wrote:
> >         def login_by_uname(uname,pwd)
> >                         if uname.nil? and pwd.nil?
> >                                 uname = "per...@yahoo.com <javascript:>"
> >                                 pwd = "abcd1234"
> >                         end 
>
> Try this instead:
>
> def login_by_uname(uname = "per...@yahoo.com <javascript:>", pwd = 
> "abcd1234")
>   # the rest of the code
> end
>
> and then call the method like this:
>
> login_by_uname
>
> Željko
>
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to