问题
I am using iMacros 7.6.0.2 I am trying to figure how to extract text from a pop up dialog box (not one that I have created). I am using JavaScript, and SET !EXTRACTDIALOG YES doesn't work with my version of iMacros.. Upgrading isn't an option so I am wondering if there is any way to do this or if I am screwed...Thanks

回答1:
http://wiki.imacros.net/Data_Extraction
Check out the link above and there are few examples.
URL GOTO=http://www.iopus.com/imacros/demo/v6/dialogs/javascript2.htm
SET !EXTRACTDIALOG YES
ONDIALOG POS=1 BUTTON=OK CONTENT=
TAG POS=1 TYPE=INPUT:BUTTON FORM=NAME:NoFormName ATTR=VALUE:Popup<SP>1
WAIT SECONDS=3
PROMPT {{!EXTRACT}}
Here is one example. Also there is folder Demo-FireFox in iMacros folder. It has examples of iMacros scripts. There are few exatract examples and of them could help you.
来源:https://stackoverflow.com/questions/21744139/extracting-dialog-box-text-in-imacros-or-javascript