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

[Solved] Problem with RadMenu control

11 Answers 129 Views
Telerik Testing Framework
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alexander
Top achievements
Rank 1
Alexander asked on 08 Sep 2009, 11:41 AM
Hi,

I've a problem with RadMenu control now. Part of our application has a menu with about 10 items, when I try to acces them I'm using code:
var menu = slApp.FindName <RadMenu>("MainMenu");
var filemenu = menu.Items[1];
 filemenu.Click();
it's from your video tutorial.
The using namespace is:
using Telerik.WebAii.Controls.Xaml;

The problem is that menu is always empty and i'm getting the error 'Index was out of range. Must be non-negative and less than the size of the collection.' all the time. Before menu appears we have two login screens that passed successfuly by code:

TextBlock NextButton = slApp.Find.ByText("Next");
 Wait.For<TextBlock>(block => block.TextContent.Equals("Next"), NextButton, 30000);
 NextButton.User.Click();

TextBlock AdmNextButton = slApp.Find.ByText("Finish");
 Wait.For<TextBlock>(block => block.TextContent.Equals("Finish"), AdmNextButton, 30000);
  AdmNextButton.User.Click();

var menu = slApp.FindName <RadMenu>("MainMenu");
var filemenu = menu.Items[1];
 filemenu.Click();
Please, could you tell us what is wrong here?

11 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 08 Sep 2009, 12:23 PM
Hi Alexander,

This issue sounds like an incompatibility of the WebAii RadControls for Silverlight and the RadControls for Silverlight building your application under test. Can you please share which version of RadControls is that? Is that a recent or an older version?

Is there a way I can see your SL application (the RadMenu in question) live? If so, I will be able to find an easy workaround.

Kind regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Dario
Top achievements
Rank 1
answered on 08 Sep 2009, 12:51 PM
Hello Konstantin,

Aleksandar asked me to join party again :)

The build we run at the moment is 2009_2_724 . I wanted to update it for some time now... (because of latest improvments in grid ctrl) and so i can do it today...i have just downlaoded RadControls_for_Silverlight_2009_2_904 . We will let you know what will haappen with this version as well.

I can give you access to our staging but it would be better if we can do that in private (over email).
0
Konstantin Petkov
Telerik team
answered on 09 Sep 2009, 06:56 AM
Hi Dario,

I hope you enjoy the improvements in RadControls for Silverlight as well. The team is working constantly on adding new controls and features as well as addressing the known issues.

As to the private support, such is available during your evaluation of RadControls as well as with the subscription.

Regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Dario
Top achievements
Rank 1
answered on 09 Sep 2009, 07:18 AM
Hello Konstantin,

Same thing with the build RadControls_for_Silverlight_2009_2_904 .

On my pc also every test with click() don't pass .. On Aleksandar's pc it does work... i have ie8 he have ie7 ...

If you would like to check our staging drop me an email and i will send you the public link .
0
Konstantin Petkov
Telerik team
answered on 09 Sep 2009, 07:26 AM
Hello Dario,

Please use this form adding "WebAii Testing Framework" to the title. You can refer to this thread so I can get your message shortly.

Kind regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Dario
Top achievements
Rank 1
answered on 09 Sep 2009, 07:47 AM
Hello Konstantin,


Done as requested.

Your ticket ID is: 241220
0
Dario
Top achievements
Rank 1
answered on 09 Sep 2009, 01:04 PM
Hello Konstantin


Maybe you would like to know... click() on my pc did not work because i set page zoom to 120% on all pages in IE.
When i changed default page zoom to 100% click did work.

Anyway initial and main problem remains...
0
Accepted
Konstantin Petkov
Telerik team
answered on 10 Sep 2009, 07:22 AM
Hi Dario,

I've forwarded the Click() and zoomed page problem to ArtOfTest and they will investigate the problem. Thanks for sharing this information!

As to the empty Items collection, I hope my directions send privately help. Just to clarify publicly, the .Items property looks for items of specific type -- RadMenuItem. Since your RadMenu contains items of different type, you need to get the item via the core framework API as in this help article.

We may provide a way to override the item element type in subsequent releases of the framework. This could be helpful with many of the RadControls (like all the navigational components), not only RadMenu when the type is inherited. We may even add that ability for the official release of the framework in Q3 especially if we notice more people need it. Please let me know what you think.

Sincerely yours,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Dario
Top achievements
Rank 1
answered on 10 Sep 2009, 07:56 AM

Hello Konstantin,

With your help we manage to overcome this issue with RadMenu. We did manage to navigate our custom MenuItems in your suggested way but in the end we settled with standard RadMenuItem which we also manage to access without any problem.
Anyway I few other cases we do have real need to extend your standard objects and some built in support in your testing framework for extended Telerik controls would be very helpful as this is unavoidable in lot of cases.

Thank you,
Dario

0
Konstantin Petkov
Telerik team
answered on 10 Sep 2009, 08:47 AM
Hello Dario,

This will be indeed a valuable option that can help in many scenarios. Thanks a lot for your feedback!

Greetings,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Konstantin Petkov
Telerik team
answered on 07 Oct 2009, 10:40 AM
Hi all,

This is to let you know the discussed feature is already implemented. We have released a new update of the WebAii Testing Framework labeled 2009.2.1006 that you can download and give a try.

I've also just published a blog post on the matter. Take a look at it and please feel free share your feedback:

WebAii Testing Framework Support for Extended RadControls

Best wishes,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Telerik Testing Framework
Asked by
Alexander
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Dario
Top achievements
Rank 1
Share this question
or