I am trying to write a program to access this site. When both the password and ID are correct, the page redirects to another URL. When the user ID is wrong, it will notify the user via a popup and and when the password is wrong, it will not say anything (Try Barcode:21290004296682 PW:0000).
The problem I'm facing is that I can't get mechanize to differentiate between "wrong barcode" and "wrong password". In order words, I can't get it to recognize the popup dialog that displays after entering the wrong barcode.
Can anybody please help? And before people start thinking I'm doing this for malicious purposes, this is actually for my university's Information Security project.