Some times can not get the element when run a test case

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
beyond0309
Posts: 1
Joined: Tue Jan 20, 2015 4:23 pm

Some times can not get the element when run a test case

Post by beyond0309 » Tue Jan 20, 2015 4:32 pm

Hi, I was currently use ranorex to test a WPF based application,
I firstly trace the button in Backstage page (come from Actipro WPF Toolkit) to build a test case. and when run the whole case, every time this button can not be found. and at this time, In this page If I try to trace this button, it also can not be found.

But if I start application and go to backstage manually, Generally, this button can be traced.

I have delay 3 seconds before trace the button in test case, but still doesn't work...

It's very strange.

Is this a bug in ranorex? or What's wrong with my implementation? or any solutions I can try?

Thanks!

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Some times can not get the element when run a test case

Post by Support Team » Wed Jan 21, 2015 10:33 am

Hi beyond0309,

That sounds weird, have you already tried to start Ranorex as administrator, by right clicking and selecting "Run as administrator"?
May I ask you to answer the following questions?
Which Ranorex version do you use?
Can you post or send (to [email protected]) a Ranorex snapshot file of the control when it can be identified and one of the container holding the button when it can't be identified?
The following link will show you how to generate a snapshot file: Creating Ranorex Snapshot Files.

Thanks,
Markus
.
Image