ASP Login form

Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.
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
nveeravalli
Posts: 19
Joined: Thu Apr 01, 2010 11:25 am

ASP Login form

Post by nveeravalli » Thu Apr 22, 2010 7:46 pm

HI,

Please help me out with login entry problem for this macro. I am unable to perform a loop, apart from general login box and ASP pop box rises and i could not able to sign in that. Please help me with the best solution. I appreciate for your help.

VERSION BUILD=5100314
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://my.monster.com/Login.aspx
SIZE X=1132 Y=579
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:aspnetForm ATTR=NAME:ctl00$ctl00$ctl00$body$body$wacCenterStage$standardLogin$tbxUsername CONTENT=akshay.wl@sqlage.com
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:aspnetForm ATTR=NAME:ctl00$ctl00$ctl00$body$body$wacCenterStage$standardLogin$tbxPassword CONTENT=mercury123
TAG POS=1 TYPE=A ATTR=TXT:Sign<SP>In
TAG POS=1 TYPE=A ATTR=HREF:http://my.monster.com/Profile/Manage.aspx
TAG POS=1 TYPE=A ATTR=TXT:Edit
TAG POS=1 TYPE=A ATTR=TXT:Save
TAG POS=1 TYPE=A ATTR=HREF:http://my.monster.com/SignOut.aspx
TAG POS=1 TYPE=A ATTR=HREF:http://my.monster.com/Login.aspx
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:aspnetForm ATTR=NAME:ctl00$ctl00$ctl00$body$POD$persistentLogin$tbxUsername CONTENT=anandbolla.wl@sqlage.com
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:aspnetForm ATTR=NAME:ctl00$ctl00$ctl00$body$POD$persistentLogin$tbxPassword CONTENT=mercury123
TAG POS=1 TYPE=A ATTR=TXT:Sign<SP>In
TAG POS=1 TYPE=A ATTR=TXT:Edit<SP>Profile
TAG POS=1 TYPE=A ATTR=TXT:Edit
TAG POS=1 TYPE=A ATTR=TXT:Save
TAG POS=1 TYPE=A ATTR=HREF:http://my.monster.com/SignOut.aspx
TAG POS=1 TYPE=A ATTR=HREF:http://my.monster.com/Login.aspx
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:aspnetForm ATTR=NAME:ctl00$ctl00$ctl00$body$POD$persistentLogin$tbxUsername CONTENT=devendersingh.wl@sqlage.com
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:aspnetForm ATTR=NAME:ctl00$ctl00$ctl00$body$POD$persistentLogin$tbxPassword CONTENT=mercury123
TAG POS=1 TYPE=A ATTR=TXT:Sign<SP>In
TAG POS=1 TYPE=A ATTR=TXT:Edit<SP>Profile
TAG POS=1 TYPE=A ATTR=TXT:Edit
TAG POS=1 TYPE=A ATTR=TXT:Save
TAG POS=1 TYPE=A ATTR=HREF:http://my.monster.com/SignOut.aspx
TAG POS=1 TYPE=A ATTR=HREF:http://my.monster.com/Login.aspx
'Comment: New page loaded
slamsal
Posts: 96
Joined: Fri Sep 12, 2008 4:39 pm

Re: ASP Login form

Post by slamsal » Fri Apr 23, 2010 6:16 am

1) Run the login macros
2) Intentionally create a error and ask macro to run a error macro which is your next macro
3) In the next macro, Intentionally create a error and ask macro to run the same macro that you are running....which means you are looping.
4) Make Sense?

Keyword is: SET !ERRORMACRO myErrorMacro, Try to create an error intensionally and then plan what you want to do when there is an error.

Confusing but not hard once you get it.

Code: Select all

VERSION BUILD=5100314
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://my.monster.com/Login.aspx
SIZE X=1132 Y=579
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:aspnetForm ATTR=NAME:ctl00$ctl00$ctl00$body$body$wacCenterStage$standardLogin$tbxUsername CONTENT=akshay.wl@sqlage.com
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:aspnetForm ATTR=NAME:ctl00$ctl00$ctl00$body$body$wacCenterStage$standardLogin$tbxPassword CONTENT=mercury123
TAG POS=1 TYPE=A ATTR=TXT:Sign<SP>In 
TAG POS=1 TYPE=A ATTR=TXT:asdfff
SET !ERRORMACRO myErrorMacro 

New macro name this myErrorMacro

Code: Select all

VERSION BUILD=5100314
TAB T=1
TAB CLOSEALLOTHERS
SET !ERRORMACRO myErrorMacro
TAG POS=1 TYPE=A ATTR=TXT:Edit
TAG POS=1 TYPE=A ATTR=TXT:Save
TAG POS=1 TYPE=A ATTR=HREF:http://my.monster.com/SignOut.aspx
TAG POS=1 TYPE=A ATTR=HREF:http://my.monster.com/Login.aspx
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:aspnetForm ATTR=NAME:ctl00$ctl00$ctl00$body$POD$persistentLogin$tbxUsername CONTENT=anandbolla.wl@sqlage.com
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:aspnetForm ATTR=NAME:ctl00$ctl00$ctl00$body$POD$persistentLogin$tbxPassword CONTENT=mercury123
TAG POS=1 TYPE=A ATTR=TXT:Sign<SP>In
TAG POS=1 TYPE=A ATTR=TXT:Edit<SP>Profile
TAG POS=1 TYPE=A ATTR=TXT:Edit
TAG POS=1 TYPE=A ATTR=TXT:Save
TAG POS=1 TYPE=A ATTR=HREF:http://my.monster.com/SignOut.aspx
TAG POS=1 TYPE=A ATTR=HREF:http://my.monster.com/Login.aspx
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:aspnetForm ATTR=NAME:ctl00$ctl00$ctl00$body$POD$persistentLogin$tbxUsername CONTENT=devendersingh.wl@sqlage.com
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:aspnetForm ATTR=NAME:ctl00$ctl00$ctl00$body$POD$persistentLogin$tbxPassword CONTENT=mercury123
TAG POS=1 TYPE=A ATTR=TXT:Sign<SP>In
TAG POS=1 TYPE=A ATTR=TXT:Edit<SP>Profile
TAG POS=1 TYPE=A ATTR=TXT:Edit
TAG POS=1 TYPE=A ATTR=TXT:Save
TAG POS=1 TYPE=A ATTR=HREF:http://my.monster.com/SignOut.aspx
TAG POS=1 TYPE=A ATTR=HREF:http://my.monster.com/Login.aspx
TAG POS=1 TYPE=A ATTR=HREF:http://sdsdsdsd
'Comment: New page loaded
Sanjiv Lamsal
iMacros Consultant
Duluth, MN USA
sanjivlamsal@hotmail.com
slamsal
Posts: 96
Joined: Fri Sep 12, 2008 4:39 pm

Re: ASP Login form

Post by slamsal » Fri Apr 23, 2010 6:18 am

The above solution works in Free version of imacros. If you already have scripting version of Imacros, its piece of cake.
Sanjiv Lamsal
iMacros Consultant
Duluth, MN USA
sanjivlamsal@hotmail.com
nveeravalli
Posts: 19
Joined: Thu Apr 01, 2010 11:25 am

Re: ASP Login form

Post by nveeravalli » Fri Apr 23, 2010 7:46 am

HI Sanjiv,

Thanks for your time, but unfortunately the code your provided is not working. Challenge is we are getting logins 2 times for every entry in this way i was unable to correct it. i used your code with SET !ERRORMACRO myErrorMacro still facing the similar problem, please let me know if you have any alternative solution. I am using the full version of Scription Edition

Thanks again for your concern and code.

Thanks
Naveen
Daniel, Tech Support
Posts: 1483
Joined: Tue Jan 26, 2010 11:35 am

Re: ASP Login form

Post by Daniel, Tech Support » Fri Apr 23, 2010 4:35 pm

Sanjiv, thanks a lot again!

Naveen, could you please write specifically what is not working for you in Sanjiv's code?

Best regards,
Daniel, iOpus Support
Post Reply