|
请大家帮忙看看下面这个例子,为什么运行到BrowserPage.ExecLine ('Change_Tab (3)')会出错,说“Error: ExecScript() generated an error”呢?这里我使用的是ExecLine,非ExecScript,怎么说ExecScript()产生错误呢?然而前面这句“print ("Number of Images: ", BrowserPage.ExecLine ('document.images.length'))”也用了ExecLine方法的,却能够没有出错呢?谢谢!
[-] window BrowserChild SoftwareSolutionsForCRMSC
[ ] tag "Software Solutions for CRM, SCM, EAM, ERP, SRM, HCM More"
[ ] parent Browser
[-] HtmlLink JavascriptChange_Tab11
[ ] tag "$javascript:Change_Tab('1');?[1]"
[-] HtmlLink JavascriptChange_Tab21
[ ] tag "$javascript:Change_Tab('2');?[1]"
[-] HtmlLink JavascriptChange_Tab31
[ ] tag "$javascript:Change_Tab('3');?[1]"
[-] HtmlLink JavascriptChange_Tab12
[ ] tag "$javascript:Change_Tab('1');?[2]"
[-] HtmlLink JavascriptChange_Tab22
[ ] tag "$javascript:Change_Tab('2');?[2]"
[-] HtmlLink JavascriptChange_Tab32
[ ] tag "$javascript:Change_Tab('3');?[2]"
[-] main()
[ ]
[ ] SoftwareSolutionsForCRMSC.SetActive()
[ ] print ("Number of Images: ", BrowserPage.ExecLine ('document.images.length'))
[ ] BrowserPage.ExecLine ('Change_Tab (3)')
[ ]
result:
[ ] Number of Images: 27
[ ] *** Error: ExecScript() generated an error
[ ] Occurred in ExecLine
[ ] Called from main at test.t(1
[ 本帖最后由 Lily-fg 于 2007-12-12 10:48 编辑 ] |
|