Page 1 of 1

Disabe 'Click outside the boundaries' warning in code

Posted: Mon Sep 28, 2020 12:33 pm
by gridle
Hi,

I want to disable next warning:

Code: Select all

The mouse action was performed outside the boundaries of the assigned UI element.
(null)
I know it is possible to disable warning in action property in .rxrec file (Disable bounds warnings = True)
But how can I do the same for Mouse.Click() function?

Thanks!

Re: Disabe 'Click outside the boundaries' warning in code

Posted: Mon Sep 28, 2020 12:44 pm
by odklizec
Hi,

It seems there is no API like this for Mouse.Click(), but there is such possibility for Adapter.Click. All you have to to is to use ClickWithoutBoundsCheck() method, e.g. like this:

Code: Select all

spantagInfo.FindAdapter<SpanTag>().ClickWithoutBoundsCheck();

Re: Disabe 'Click outside the boundaries' warning in code

Posted: Wed Sep 30, 2020 8:43 am
by gridle
Hi, thanks for the answer!

I will check this.

Re: Disabe 'Click outside the boundaries' warning in code

Posted: Fri Oct 16, 2020 8:12 am
by gridle
odklizec wrote:
Mon Sep 28, 2020 12:44 pm

Code: Select all

spantagInfo.FindAdapter<SpanTag>().ClickWithoutBoundsCheck();
Worked for me, thanks!