This is a migrated thread and some comments may be shown as answers.

RadColorPicker rises the 'Element Not found!' exception

4 Answers 82 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Stanislav
Top achievements
Rank 1
Stanislav asked on 08 Jul 2012, 07:16 PM
I have created a wpf test application with RadColorPicker control in it. I want to chose some colour. I use the following code:
var radColorPicker = app.MainWindow.Find.AllByType<RadColorPicker>();
radColorPicker[0].SelectItem(0, 1);

The following exception is raised:
Element Not found!
FindExpression used: 
[name 'Exact' ToggleButtonElement]


What am I doing wrong? Element is highlighted and identified right.

4 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 09 Jul 2012, 01:43 PM
Hello Stanislav,

Which version of our RadControls for WPF you are currently using? I've tried the same code against the RadColorPicker control and as you can see in this video, it works as expected. Please upgrade to latest version of the RadControls and try the same code again.  

If you continue to have difficulty, local reproduction is necessary. Please share your app with us by attaching it to a new support ticket which would be confidential, or I could share a Dropbox link with you. If you cannot share the full app, perhaps your developers can create a small demo app for us that exhibits the same behavior.

Kind regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Stanislav
Top achievements
Rank 1
answered on 09 Jul 2012, 02:25 PM
Hello Plamen,

Thank you very much for the provided video. I do exactly as in video but I have only trial version of Rad controls. I downloaded them yesterday from Telerik website (so they should be the latest). And every time when application is starting I have to click on the dialog window to close it before the window is displayed. Everything else is the same.
0
Stanislav
Top achievements
Rank 1
answered on 09 Jul 2012, 07:09 PM
Plamen, I have tried one more time to work with another control - RadDatePicker. The issue is still reproduced. I get the same exception as with previous Rad control.

Manager myManager = new Manager(false);
myManager.Start();
 
WpfApplication app = myManager.LaunchNewApplication(@"H:\WpfApplication1\bin\Debug\WpfApplication1.exe");
var radDatePicker = app.MainWindow.Find.AllByType<RadDatePicker>();
radDatePicker[0].TogglePopup(); //<-- the exception is raised here

Can trial version of the Rad controls be a root cause of this issue?

Thank you in advance.
0
Plamen
Telerik team
answered on 11 Jul 2012, 03:56 PM
Hi Stanislav,

As I posted in your other ticket 563373, the issue with the RadColorPicker control is a bug in the control wrapper. We'll try to include the fix in our next official SP release at the end of next week. 

Unfortunately I'm not able to reproduce the second problem with the RadDatePicker control. This time I'm using the same version of RadControls as yours(2012.2.607), but as you can see in this video I succeeded in using the TogglePopup() method. Would it be possible for you to send me your test project once again in order to reproduce the issue?

Regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Stanislav
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Stanislav
Top achievements
Rank 1
Share this question
or