SCRIPT FOR EMPTYING GMAIL ACCOUNTS

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
z3us
Posts: 9
Joined: Thu Oct 18, 2007 10:11 pm

SCRIPT FOR EMPTYING GMAIL ACCOUNTS

Post by z3us » Sun Dec 09, 2007 1:20 pm

Hi. I tried to make a script that I want to use for deleting all messages in several gmail accounts that I use for p2m.

Is this:

Code: Select all

VERSION BUILD=6011201 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
URL GOTO=http://www.gmail.com
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:https://www.google.com/accounts/ServiceLoginAuth?service=mail ATTR=ID:Email 

CONTENT=FIRST ACCOUNT ID
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ACTION:https://www.google.com/accounts/ServiceLoginAuth?service=mail 

ATTR=ID:PersistentCookie&&VALUE: CONTENT=YES
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:https://www.google.com/accounts/ServiceLoginAuth?service=mail ATTR=ID:Passwd 

CONTENT=FIRST ACCOUNT ENCRIPTED PASSWORD
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:https://www.google.com/accounts/ServiceLoginAuth?service=mail 

ATTR=NAME:signIn&&VALUE:Acceder
FRAME F=2
TAG POS=1 TYPE=SPAN ATTR=TXT:Todas
TAG POS=1 TYPE=BUTTON ATTR=TXT:Suprimir
TAG POS=1 TYPE=SPAN ATTR=TXT:Papelera
FRAME F=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Vaciar<SP>la<SP>Papelera<SP>ahora
TAG POS=1 TYPE=A ATTR=TXT:Salir

URL GOTO=http://www.gmail.com
TAG POS=1 TYPE=INPUT:PASSWORD TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:https://www.google.com/accounts/ServiceLoginAuth?service=mail ATTR=ID:Email 

CONTENT=SECOND ACCOUNT ID
...
It runs OK with the first account, but when trying to log into second account, a "TAG not found" error is shown

Any idea????

TY
OrkyDD
Posts: 11
Joined: Thu Sep 20, 2007 2:57 pm

Post by OrkyDD » Thu Dec 13, 2007 1:50 pm

Don't you need to log out from the account before trying to log in to the next one?
z3us
Posts: 9
Joined: Thu Oct 18, 2007 10:11 pm

Post by z3us » Thu Dec 13, 2007 3:57 pm

Code: Select all

TAG POS=1 TYPE=A ATTR=TXT:Salir 
Salir is the link for logging out in spanish
User avatar
Tech Support
Posts: 4948
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Post by Tech Support » Sat Dec 15, 2007 12:25 am

It seems Gmail uses different URL sometimes(?). Instead of

TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ACTION:https://www.google.com/accounts/Service ... rvice=mail

please try

TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ACTION:*/ServiceLoginAuth?service=mail
Post Reply