SetElementInnerTextById
Interface AntViewDocument
Type: Method
Parameters: String Id String Text
Returns: nothing
Set the innerText for the html element identified by Id in the document currently loaded in the WebView2 component.
Note that the id is case sensitive and must match the case of the html element.
This triggers the OnSetElementInnerTextById event on completion as it is an asynchronous operation.
There's also a synchronous alternative SetElementInnerTextByIdSync that wraps the method and event into one call and gives you the ability to check the result immediately after executing the method.
See also: RequestElementInnerTextById
Introduced in AntView release 1.1.354
AntView - The MS Edge WebView2 ActiveX control Date last changed: 09/25/2024