ElementClickById
Interface AntViewDocument
Type: Method
Parameters: String Id
Returns: nothing
Executes the click event for the html element that matches the Id passed. Possible errors are returned via OnElementClickById.
Note that the value in the Id parameter is case sensitive and must match the case of the id attribute for the html element.
This triggers the OnElementClickById event on completion as it is an asynchronous operation. The event gives you the possibility to check for errors that might have happened while trying to click the element by id.
There's also a synchronous alternative ElementClickByIdSync that wraps the method and event into one call and gives you the ability to check the result immediately after executing the method.
Introduced in AntView release 1.1.375
AntView - The MS Edge WebView2 ActiveX control Date last changed: 09/25/2024