imacros - how to get content of external file php -
i new in imacros , need help. esotu writing imacros script , did not want leave code accessible user changes , maintenance work gives me later.
i need imacro code external php file of website .
the idea macro has url php file, , contents of file run when macro run .
so far have code here, , can not imacro read contents of php file:
version build=8530828 recorder=fx set !errorignore yes set !timeout_tag 1 set !timeout_step 1 set !timeout_page 30 set !replayspeed fast set !datasource http://www. site .com/todocodigoaqui.php set !datasource_columns 1 set !loop 1 set !datasource_line {{!loop}} set !todocodigoaqui url goto={{!col1}}
thanks
tab t=1 tab closeallothers
the variant firefox 'imacros':
const l = "\n"; var m = "tab t=1" + l; m += "tab open" + l; m += "tab t=2" + l; m += "url goto=http://www. site .com/todocodigoaqui.php" + l; m += "tag pos=1 type=html attr=* extract=txt" + l; m += "tab close" + l; iimplaycode(m); iimplaycode(iimgetextract());
you can contents of php-file in way:
' ... tab open tab t=2 url goto=http://www. site .com/todocodigoaqui.php set !extract_test_popup no tag pos=1 type=html attr=* extract=txt tab close 'prompt {{!extract}} '...
if use javascript scripting interface firefox, run extracted macro iimplaycode(iimgetextract())
.
Comments
Post a Comment