Page 1 of 1

Can't find checkboxes

Posted: Tue Jun 24, 2014 4:29 pm
by Willy
Hi,

I encoutered some problems testing Eclipse based applications. Many times Ranorex can't find checkboxes in trees elements or tables of Eclipse-based software.
ghostCheckbox.png
It seems that I can find the line where the checkbox is with this RXPath :

Code: Select all

<pathToTheTable>/table[@class='SysListView32']//checkable
But impossible to check the checkbox, for the moment i press the spacebar to check it but it's not very safe ...
Ghost checkbox Snapshot.rxsnp
I hope this can help ...

Thank you in advance for any help !

Re: Can't find checkboxes

Posted: Tue Jun 24, 2014 4:43 pm
by krstcs
Do you have to click exactly on the checkbox for it to activate? Or, can you just click on the containing cell? If clicking on the cell will activate the checkbox then I would suggest that you do that.

If you have to click on the checkbox, is the location of the checkbox static within the containing cell? If so, you could just use specific coordinates with the Mouse -> Click action in Ranorex and click on the cell at the coordinates of the checkbox. If the location is static, this should work.

Re: Can't find checkboxes

Posted: Wed Jun 25, 2014 9:19 am
by Willy
Hi,

I verified and the checkbox can't be checked if I don't click on it directly :? .

So I had to place the mouse on the checkbox by code, and to perform a click like you suggested.
I would have prefered to use checkbox "check/uncheck" methods ^^, but it will be ok that way too.

Thank you for your help ! Have a nice day !

Willy