本帖最后由 ysping 于 2016-8-11 13:46 编辑
请问,以下基于IE的代码,如何改写成基于firefox的代码?
#include <C:\Program Files (x86)\AutoIt3\include\IE.au3>
$oIE = _IECreate ("https://*.*.*.*")
sleep(5000)
$oDiv = _IEGetObjById ($oIE, "overridelink")
_IEAction($oDiv ,"click")
sleep(5000)
$oForm = _IEFormGetObjByName ($oIE, "form1")
$oQuery = _IEFormElementGetObjByName ($oForm, "username")
_IEFormElementSetValue ($oQuery, "user1")
$oQuery = _IEFormElementGetObjByName ($oForm, "password")
_IEFormElementSetValue ($oQuery, "pass1")
$oQuery = _IEFormElementGetObjByName ($oForm, "button")
_IEAction($oQuery ,"click")
sleep(3000)
_IEAction ($oIE, "quit") |