Page 1 of 1

Having issues finding an object

Posted: Wed Nov 05, 2014 7:36 pm
by jwitmer
While attempting to automate a page with checkboxes that are generated dynamically I find that I am having issues with interacting with them. I can locate the checkboxes in the Spy easily enough and determine their attributes however when referenced in code some of their attributes don't match.

For example:

A checkbox's ScreenLocation might show 852,358 value in the spy.

But in my code if I call cbox.Element.ScreenLocation I get -851, -271

Any help would be greatly appreciated.

Re: Having issues finding an object

Posted: Fri Nov 07, 2014 11:22 am
by Support Team
Hello jwitmer,

Can you please give us more information about your application and the properties you are using. Unfortunately it is hard to help you without any knowledge about the controls you want to test.Please attach a Ranorex Snapshot file and describe what exactly you are trying to do.A detailed description how to create a Ranorex Snapshot file can be found in the section Creating Ranorex Snapshot Files on our website.

Regards,
Bernhard