|
想拿到一个web页面中的所有ActiveX控件,写了如下代码
'-----------------------------------------
' browser description
Set browser_des = description.Create
browser_des("micClass").value = "Browser"
browser_des("url").value = TEST_URL
browser_des("application version").value = "internet explorer 6"
' page description
Set page_des = description.Create
page_des("micClass").value = "Page"
' activex description
Set acx_des = description.Create
acx_des("micClass").value = "ActiveX"
Set acxObjects = Browser(browser_des).Page(page_des).ChildObjects(acx_des)
'-----------------------------------------
运行到最后一句时候,提示General run error
不知道思路是否正确,web中的activex应该如何识别呢?
是直接用activex ojbect?
还是把它当作webelement或者winobject来做?
该如何解决呢?
谢谢各位了~~ |
|