I am trying to save a captcha image and while it is saving an image it is saving the wrong part of the screen.
I am using:
version:
10022823
windows: 7
Tested in: imacros browser and imacros for IE
Here is my code:
Code: Select all
VERSION BUILD=10022823
CLEAR
SET !DATASOURCE "C:\\account_data.csv"
PROXY ADDRESS={{!COL1}}
TAB T=1
ONDOWNLOAD FOLDER=C:\captcha FILE=captcha.jpg WAIT=YES
TAB CLOSEALLOTHERS
URL GOTO=https://accounts.google.com/ServiceLogin?service=adwords&hl=en-US<mpl=signup&passive=false&ifr=false&alwf=true&continue=https://adwords.google.com/um/SignupToken&app=Signup&sacu=1&sourceid=awo&subid=ww-ns-g-awhp_nelsontest3_nel_e
TAG POS=2 TYPE=INPUT:RADIO ATTR=NAME:keyGoogleAccount CONTENT=YES
FRAME NAME=newAccountLoginBox
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:createaccount ATTR=NAME:Email CONTENT={{!COL2}}
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:createaccount ATTR=NAME:Passwd CONTENT={{!COL3}}
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:createaccount ATTR=NAME:PasswdAgain CONTENT={{!COL3}}
TAG POS=1 TYPE=IMG FORM=NAME:createaccount ATTR=SRC:*https://accounts.google.com/Captcha?ctoken* CONTENT=EVENT:SAVE_element_screenshot
WAIT SECONDS=5
TAB OPEN
TAB T=2
SET !EXTRACT_TEST_POPUP NO
URL GOTO=http://api.deathbycaptcha.com/decaptcher?function=picture2&print_format=html
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://api.deathbycaptcha.com/decaptcher ATTR=NAME:username CONTENT=<my_user_name>
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://api.deathbycaptcha.com/decaptcher ATTR=NAME:password CONTENT=<my_password>
TAG POS=1 TYPE=INPUT:FILE FORM=ACTION:http://api.deathbycaptcha.com/decaptcher ATTR=NAME:pict CONTENT=C:\captcha\image.jpg
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://api.deathbycaptcha.com/decaptcher ATTR=VALUE:Send
WAIT SECONDS=30
TAG POS=6 TYPE=TD ATTR=* EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}
TAB CLOSE
TAB T=1
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:createaccount ATTR=NAME:newaccountcaptcha CONTENT=!VAR1
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=NAME:createaccount ATTR=NAME:TermsOfService CONTENT=YES
Which makes sense because there is no file type in the code of the page that specifies the type of file for the CAPTCHA image. Instead there is a randomly generated "key" that is used to reference the image.Error -1000: Cannot copy the item being saved to destination file: C:\captcha\captcha.jpg Unable to save screenshot of the current browser page. Notice that only HTML documents are currently supported (no PDF or office documents loaded via plugins). Line 15: TAG POS=1 TYPE=IMG FORM=NAME:createaccount ATTR=SRC:*https://accounts.google.com/Captcha?ctoken* CONTENT=EVENT:SAVEPICTUREAS
I feel very close to getting this to work but something is either out of place/sequence or the references are wrong somehow.
I've spent 3 hours on this and it's driving me nuts Any ideas?