Thanks Corion. Validating the field values outside the form is not an issue. As I mentioned earlier, right now I am doing the form submission skipping the javascript validation. But the webpage under test which I am trying to automate, sometimes give invalid alert messages based on the values in certain fields. These messages are generated by the javascript. So if I ignore the javascript validation in the webpage, form will be submitted successfully but the error with the javascript goes unnoticed.
For example, if I submit the form manually by selecting the 'OK' button, the webpage gives an alert message which says "Please complete the red entry" even when there are no empty fields. And then webpage submission does not get initiated. This is the main reason for which I cannot ignore the alert boxes in the webpage.
Now I believe that I made my point clear to you. If it does, that justifies this lengthy reply. Please help me to sort out this issue.
In reply to Re^2: (OT) How to override the javascript alert when submitting a form using WWW::Mechanize::Firefox
by ajose
in thread (OT) How to override the javascript alert when submitting a form using WWW::Mechanize::Firefox
by ajose
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |