Hi,
Is anyone manage to create a macro to login to facebook?
Thanks for your answers
Moderator: iOpus Moderators
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:login_form ATTR=ID:u373153_3VERSION BUILD=7031111 RECORDER=FX
TAB T=1
URL GOTO=www.facebook.com
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:https://www.facebook.com/login.php?login_attempt=1 ATTR=ID:email CONTENT=aaaa@gmail.com
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:https://www.facebook.com/login.php?login_attempt=1 ATTR=ID:pass CONTENT=bbbbbbb
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:login_form ATTR=ID:*Wis wrote:Yeah. The problem is that the ID of the button is changing on every session. http://wiki.imacros.net/FAQ#Q:_A_link_c ... t_error.3F
In this case the problem is the ID of the Submit button.
- Code: Select all
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:login_form ATTR=ID:u373153_3
Just change it for an asterisk and iMacros will look for the first (POS=1) element that has Type=Input:Submit. There is only one, so no problem.
- Code: Select all
VERSION BUILD=7031111 RECORDER=FX
TAB T=1
URL GOTO=www.facebook.com
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:https://www.facebook.com/login.php?login_attempt=1 ATTR=ID:email CONTENT=aaaa@gmail.com
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:https://www.facebook.com/login.php?login_attempt=1 ATTR=ID:pass CONTENT=bbbbbbb
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:login_form ATTR=ID:*
Return to Data Extraction and Web Screen Scraping
Users browsing this forum: No registered users and 1 guest