Dynamic password question

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
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
nilpotent00
Posts: 1
Joined: Sun Mar 09, 2008 1:35 pm

Dynamic password question

Post by nilpotent00 » Sun Mar 09, 2008 1:52 pm

Hello,

This website requires that I type in

1. Main password and
2. Secondary password to one of three preset questions

For example, if I try to log in now, it will ask "Password" and "MONTH of birth"; if I log out and try to log in again, it will then ask "Password" and "YEAR of birth."

Is there a way in iMacros to recognize a form question and give an answer depending on the question?

Much appreciated!
mknoll1
Posts: 174
Joined: Fri Dec 23, 2005 4:14 pm

Post by mknoll1 » Mon Mar 10, 2008 4:53 pm

Because there is no runtime logic Iopus does not handle this well. I have figured out a way to trick the player into behaving as if it had logic with the code below.

The macro clicks on something on the bottom of the page. It then tries to click on the text of the question. If the question is not on the page this line fails and the script continues to the next one. Then the macro clicks on the next box described after the last successful command. If the question was on the page this is the answer field on the website. If the question was not on the page then the command fails and the script continues. In this case everything is hardcoded but if you have figured out how to pass variables tot eh script then you could certainly do most of this with variables. Let me know if you have any questions about this and I will try to answer them.

Code: Select all

SET !TIMEOUT 240
SET !ENCRYPTION NO
'
TAB T=1     
TAB CLOSEALLOTHERS
VERSION BUILD=5220125      
TAB T=1     
TAB CLOSEALLOTHERS     
URL GOTO=https://banking.firsttennessee.biz/servlet/ftb/index.html     
SIZE X=801 Y=602   
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:SignOn ATTR=NAME:DetectDemoMode.UserName CONTENT=TEST1
SET !ERRORCONTINUE YES
TAG POS=1 TYPE=IMG ATTR=TXT:<IMG<SP>height=31<SP>src="/ftb/ft_docs/images/resources/footer_right.gif"<SP>width=480<SP>border=0>   
TAG POS=1 TYPE=B ATTR=TXT:*year*birth?* 
TAG POS=R1 TYPE=INPUT:PASSWORD FORM=NAME:SignOn ATTR=NAME:ValidateAnswer.Answer CONTENT=Birth
TAG POS=1 TYPE=IMG ATTR=TXT:<IMG<SP>height=31<SP>src="/ftb/ft_docs/images/resources/footer_right.gif"<SP>width=480<SP>border=0>   
TAG POS=1 TYPE=B ATTR=TXT:*graduate?* 
TAG POS=R1 TYPE=INPUT:PASSWORD FORM=NAME:SignOn ATTR=NAME:ValidateAnswer.Answer CONTENT=Graduate
TAG POS=1 TYPE=IMG ATTR=TXT:<IMG<SP>height=31<SP>src="/ftb/ft_docs/images/resources/footer_right.gif"<SP>width=480<SP>border=0>   
TAG POS=1 TYPE=B ATTR=TXT:*county* 
TAG POS=R1 TYPE=INPUT:PASSWORD FORM=NAME:SignOn ATTR=NAME:ValidateAnswer.Answer CONTENT=County
TAG POS=1 TYPE=IMG ATTR=TXT:<IMG<SP>height=31<SP>src="/ftb/ft_docs/images/resources/footer_right.gif"<SP>width=480<SP>border=0>   
TAG POS=1 TYPE=B ATTR=TXT:*month*birth* 
TAG POS=R1 TYPE=INPUT:PASSWORD FORM=NAME:SignOn ATTR=NAME:ValidateAnswer.Answer CONTENT=MonthBirth
TAG POS=1 TYPE=IMG ATTR=TXT:<IMG<SP>height=31<SP>src="/ftb/ft_docs/images/resources/footer_right.gif"<SP>width=480<SP>border=0>   
WAIT SECONDS=20
SET !ERRORCONTINUE NO
Post Reply