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

Not able to find a RadContextMenu

1 Answer 87 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Larah Chris
Top achievements
Rank 1
Larah Chris asked on 08 Apr 2010, 02:00 PM
Hi,

I got one issue on using WebAii 2.0 for testing Silverlight.
Test case do: 
 * Lauch browser
 * Find the silverlight in page and the stackpanel
So I do this :
C #
//Locate the stack panel : ok 
StackPanel stack = app.FindName<StackPanel>("MyStackPanel"); 
  
//simulate a Right click on the stackPanel : ok (the RadContextMenu appears) 
stack.User.Click(MouseClickType.RightClick); 
 
RadContextMenu menu = app.Find.ByType<RadContextMenu>();
// And I caught an TimeOut Exception 

xaml : 

<telerik:RadContextMenu.ContextMenu> 
   <telerik:RadContextMenu name="" > 
    ... 
   </telerik:RadContextMenu> 
</telerik:RadContextMenu.ContextMenu> 

When I remove the line : <telerik:RadContextMenu.ContextMenu>, I didn't catch the timeout exception but I want to use that line...  
So Why this doesn't work ? I tried to give a name to the Radcontextmenu (and use app.Find.ByName<RadContextMenu>("menu")  instead of app.Find.ByType<RadContextMenu>()), to refresh the visual tree too, but I have the same problem.. 

Regards,

Thanks

1 Answer, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 08 Apr 2010, 04:12 PM
Hello Larah,

Unfortunately that's a known limitation due to the nature of RadContextMenu for Silverlight. The control simply doesn't exist in the SL Visual Tree so the automation framework cannot access it.

I'm afraid there's no workaround for the time being. We can't wait for future version of Silverlight to allow us access all these popups out of the visual tree so we're looking to implement a work-around in WebAii future versions. We will be working on major improvements for the Silverlight support in the next few months and the issue with those popups has top priority in the SL-related list.

I'm sorry for the inconvenience and please let us know if we could be of further help.

Best wishes,
Konstantin Petkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Larah Chris
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Share this question
or