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