AutoIt - 导航到不允许直接链接的ASP页面

时间:2012-06-11 16:01:39

标签: autoit

任何人都可以使用AutoIt而不是Simpletest“翻译”如何执行此操作吗?

Simpletest browser (php) on an asp site that doesn't allow direct linking

谢谢!

1 个答案:

答案 0 :(得分:1)

以下是你将如何做到这一点:

#include <IE.au3>

$URL="http://www.acgme.org/adspublic/"
$MyIExplorer=_IECreate($URL,1,1,1,1)

Local $theFrame = _IEFrameGetObjByName($MyIExplorer,"control")

_IELinkClickByText($theFrame, "Sponsoring Institutions")

_IELoadWait($theFrame)
ConsoleWrite(_IEBodyReadHTML($theFrame))