Skip to content

[Win]Click.cs

Avrigeanu Laurian edited this page Apr 14, 2023 · 1 revision

Click(simulateClick: bool, mouseMove: bool = false) : void

Parameters

  • simulateClick: A bool parameter that, when set to true, simulates the click action by invoking the button. When set to false, the click action is performed by the ActiveElement's Click() method.
  • mouseMove: An optional bool parameter that is only used when simulateClick is set to false. When set to true, the Click() method of the ActiveElement is called with the mouseMove parameter, otherwise, it's called without any parameter. Default value is false.

Returns

  • This method does not return any value.

Remarks

  • The Click() method uses a retry policy with a specified number of retries and a fixed timespan between retries. In case an exception occurs while clicking the element, the error message is displayed, and the method retries the click action according to the policy. If all retries fail, the exception is thrown.
Clone this wiki locally