Page 1 of 1

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

Posted: Tue Jan 20, 2015 4:32 pm
by beyond0309
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!

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

Posted: Wed Jan 21, 2015 10:33 am
by Support Team
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