0
我需要通過vbscript自動檢查(選擇)IE網頁中的複選框。 我寫了一些代碼,但它給 「必選對象」 誤差的document.getElementById( 「複選框(IsAdmin)」), 代碼開始:在IE網頁中通過VBscript檢查複選框
Set oIE = CreateObject("InternetExplorer.application")
With oIE
.Visible = True
.navigate ("link")
wscript.sleep 500
End With
Set oShell = CreateObject("WScript.Shell")
Dim document
document.getElementById("checkBox(IsAdmin)")
Item(0).Checked = True
的HTML源代碼是這樣的:
任何人都可以幫助我嗎?
要發佈HTML,請在它之前添加一個空行並開始每行四個空格。 (我無法編輯您的帖子,它說我必須添加更多文字 - 我不想添加文字。) – KekuSemau 2013-05-09 12:48:49