我试图在网页浏览器(geckofx v29
)上填写textarea:
Dim wordbox As GeckoInputElement = DirectCast(geckoWebBrowser1.Document.GetElementById("Note"), GeckoInputElement)
wordbox.InnerHtml = "test"
但它不起作用,
这是HTML:
<textarea ng-model="MassOrder.MassLinks" class="area mass-tarea ng-valid ng-touched ng-dirty ng-valid-parse" ng-model-options="{ debounce: 1000 }" cols="20" id="Note" name="Note" rows="5"></textarea>
有人提出任何建议吗?
答案 0 :(得分:1)
您不需要更改InnerHtml
,您需要更改该元素的Value
。
wordbox.Value = "test"