Extracting Dialog Box Text in iMacros or JavaScript

北战南征 提交于 2019-12-11 08:23:25

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!