我有以下代码:
VERSION BUILD=9030808 RECORDER=FX
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://www.demostorage.com/
TAG POS=1 TYPE=A ATTR=TXT:Login<SP>To<SP>Demo
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:/sessions?password=demo_manager&username=demo_manager ATTR=*
TAG POS=1 TYPE=SPAN ATTR=TXT:Reports
TAG POS=1 TYPE=A ATTR=TXT:Management<SP>Summary
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:/reports/management_summary_data ATTR=NAME:commit
' it sometimes takes some time for the report table to display. therefore wait for the 'Payments' text
TAG POS=1 TYPE=* ATTR=TXT:Payments EXTRACT=HTM
WAIT SECONDS = 2
SAVEAS TYPE=HTM FOLDER=* FILE=mytable_{{!NOW:yymmdd_hhnnss}}.htm
如果您运行此代码并查看结果文件,您将看到屏幕上的数据未出现在已保存的文件中,该文件本应保存整个页面。知道我做错了什么傻事吗?
谢谢!
答案 0 :(得分:1)
尝试从你的代码中提取类型提取这个结束行
SAVEAS TYPE = EXTRACT FOLDER = * FILE = mytable _ {{!NOW:yymmdd_hhnnss}}。htm