0
我试图点击使用VBScript一个按钮,使用下面的代码:如何点击一个按钮没有名字
Set IE = CreateObject("InternetExplorer.Application")
Set WshShell = WScript.CreateObject("WScript.Shell")
IE.Navigate "google.com"
IE.Visible = True
Wscript.Sleep 2000
IE.Document.All.Item("uss").Value = "username"
IE.Document.All.Item("pass").Value = "pass"
IE.Document.All.Item("character").Value = "character"
IE.Document.All("").Click()
我怎么会点击一个没有名字的按钮?
这里的submit
按钮,我想选择:
<td colspan="2" align="right"><input type="submit" value="Submit Now!"></td>
观察该按钮没有名字。如果我尝试使用提交功能,则scipt不起作用或网页不响应。有任何想法吗?