Class library usage, coding and language questions.
-
gridle
- Posts: 19
- Joined: Mon Mar 10, 2014 5:13 pm
Post
by gridle » Mon Sep 28, 2020 12:33 pm
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!
-
odklizec
- Ranorex Guru

- Posts: 6360
- Joined: Mon Aug 13, 2012 9:54 am
- Location: Zilina, Slovakia
Post
by odklizec » Mon Sep 28, 2020 12:44 pm
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();
Pavel Kudrys
Ranorex explorer at
Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
-
gridle
- Posts: 19
- Joined: Mon Mar 10, 2014 5:13 pm
Post
by gridle » Wed Sep 30, 2020 8:43 am
Hi, thanks for the answer!
I will check this.
-
gridle
- Posts: 19
- Joined: Mon Mar 10, 2014 5:13 pm
Post
by gridle » Fri Oct 16, 2020 8:12 am
odklizec wrote: ↑Mon Sep 28, 2020 12:44 pm
Code: Select all
spantagInfo.FindAdapter<SpanTag>().ClickWithoutBoundsCheck();
Worked for me, thanks!