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 <[email protected]<javascript:>> 
> wrote:
> >         def login_by_uname(uname,pwd)
> >                         if uname.nil? and pwd.nil?
> >                                 uname = "[email protected] <javascript:>"
> >                                 pwd = "abcd1234"
> >                         end 
>
> Try this instead:
>
> def login_by_uname(uname = "[email protected] <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.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to