Contents - Index - Top


ElementClickByQuerySelectorSync

Interface AntViewDocument

 

Type: Method

Parameters: String Selectors

Returns: Integer

 

 

Executes the click event for the html element that matches the query selector passed via the Selectors parameter.

 

The function returns:

  0 when the element was found, 

  1 if no element identified by Selectors was found.

  2 A click function has not been assigned to the html element

  3 Selectors parameter was empty

  21 function is already running (can only run one at a time)

  22 function timed out

  23 document not connected to WebView2 control

  24 Name parameter was empty

  25 Trying to run a synchronous method from within a WebView2 event

 

The synchronous alternative of the ElementClickByQuerySelector method.

As the function wraps the async bits, you cannot have the asynchronous variant running when you call this.

Beware that you cannot use a synchronous call from within an AntView event.

 

Introduced in AntView release 1.1.375

 

 

 


AntView - The MS Edge WebView2 ActiveX control Date last changed: 09/25/2024