# use the module use Win32::IE::Mechanize; # open IE browser $IE = Win32::IE::Mechanize->new( visible => 1 ); # Navigate to specified URL $IE->get("" ); # Set value to the fields (correct username and wrong password) $IE->set_fields(txtUserName => 'anbu', txtPassword => ''); # Click on the button - login $IE->click('btnSignIn'); # Get the error message "Incorrect password"