RadColorPicker rises the 'Element Not found!' exception

5 posts, 0 answers
  1. Stanislav
    Stanislav avatar
    1 posts
    Member since:
    May 2012

    Posted 08 Jul 2012 Link to this post

    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.
  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 09 Jul 2012 Link to this post

    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
  3. Stanislav
    Stanislav avatar
    1 posts
    Member since:
    May 2012

    Posted 09 Jul 2012 Link to this post

    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.
  4. Stanislav
    Stanislav avatar
    1 posts
    Member since:
    May 2012

    Posted 09 Jul 2012 Link to this post

    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.
  5. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 11 Jul 2012 Link to this post

    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
Back to Top