check a form for validation?

Discussions and Tech Support specific to the iMacros for Chrome extension.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
centurion
Posts: 3
Joined: Mon Jan 10, 2011 8:46 pm

check a form for validation?

Post by centurion » Wed Mar 02, 2011 11:09 am

Below i have a script that opens up a hotmail page and clicks the email part then types in the password. However this will only work if i have logged in already, so hotmail save my email address on the form.

Code: Select all

VERSION BUILD=1110311 RECORDER=CR
URL GOTO=http://www.hotmail.com
TAG POS=42 TYPE=TD ATTR=*
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:f1 ATTR=ID:idTxtBx_PWD_Password1Pwd CONTENT=XXXXXXXXXXX
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:f1 ATTR=ID:idSubmit_PWD_SignIn1Pwd
How do i check if there is or isnt an email address, if there is then proceed with my code above, if there isnt then get the code to type in my email in the box then password.

does that make sense? hope you can help..
Tom, Tech Support
Posts: 3834
Joined: Mon May 31, 2010 4:59 pm

Re: check a form for validation?

Post by Tom, Tech Support » Wed Mar 02, 2011 10:58 pm

Hello centurion,

The easy thing to do would be to not ever click the "Remember me" check box when signing in to Hotmail, then it will always prompt for the email address. Otherwise, you are going to need conditional logic:

http://wiki.imacros.net/FAQ#Q:_Are_ther ... anguage.3F
Regards,

Tom, iMacros Support
Post Reply