Contents - Index - Top


RequestInputCheckboxByIdSync

Interface AntViewDocument

 

Type: Method

Parameters: String Id Boolean Checked

Returns: Integer

 

 

Request the current checkbox state for the html input element identified by Id.

The variable Checked returns the state of the checkbox. It is True when checked, false when unchecked.

 

The function returns:

  0 when the element was found, 

  1 if the element identified by Id was not found.

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

  22 function timed out

  23 document not connected to WebView2 control

  24 Id parameter was empty

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

 

This is the Synchronous alternative of the RequestInputCheckboxById 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.

 

Example: 

Fill Form Sync Example

 

Introduced in AntView release 1.1.354

 

 

 


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