Having issues finding an object

Ask general questions here.
jwitmer
Posts: 1
Joined: Wed Nov 05, 2014 7:25 pm

Having issues finding an object

Post by jwitmer » Wed Nov 05, 2014 7:36 pm

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Having issues finding an object

Post by Support Team » Fri Nov 07, 2014 11:22 am

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