【发布时间】:2017-10-14 11:26:40
【问题描述】:
我试图在壁虎浏览器 (v45.0.32) 中更改 HTML 元素值,但它说调用成员不是壁虎元素的成员,
For Each solo As Gecko.GeckoHtmlElement In GeckoWebBrowser1.Document.text
If GeckoWebBrowser1.Document.GetElementById("order_status_id").GetAttribute("value") = "1" Then
GeckoWebBrowser1.Document.GetElementById("order_status_id").SetAttribute("value", "2")
If GeckoWebBrowser1.Document.GetElementById("notify").GetAttribute("value") = "1" Then
GeckoWebBrowser1.Document.GetElementById("notify").InvokeMember("click")
GeckoWebBrowser1.Document.GetElementById("button-history").InvokeMember("click")
End If
End If
Next
GeckoWebBrowser1.GoBack()
【问题讨论】: