On Tue, Oct 2, 2012 at 3:46 AM, Joe Fleck <joeflec...@gmail.com> wrote: > def login_by_uname(uname,pwd) > if uname.nil? and pwd.nil? > uname = "per...@yahoo.com" > pwd = "abcd1234" > end
Try this instead: def login_by_uname(uname = "per...@yahoo.com", 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