Kristian Freed
Top achievements
Rank 1
Kristian Freed
asked on 10 Aug 2010, 06:10 PM
Hi,
I'm trying to automate Silverlight child windows using the free WebAii automation framework (latest available official release). I'm using the popup tracker provided in the Telerik.WebUI.PopupTracker assembly shipped with this build to track my child window in my application, which works without any indication of an error. However, when I try to find my child window by using app.Find.ByAutomationId("MyDialogAutomationId") and various other variations on that theme, I get a TimeoutException.
Is this a known issue, and if so, is there a workaround? Is there something else I have to do to make automation of Silverlight child windows possible?
I'm trying to automate Silverlight child windows using the free WebAii automation framework (latest available official release). I'm using the popup tracker provided in the Telerik.WebUI.PopupTracker assembly shipped with this build to track my child window in my application, which works without any indication of an error. However, when I try to find my child window by using app.Find.ByAutomationId("MyDialogAutomationId") and various other variations on that theme, I get a TimeoutException.
Is this a known issue, and if so, is there a workaround? Is there something else I have to do to make automation of Silverlight child windows possible?
Cheers,
Kristian
3 Answers, 1 is accepted
0
Accepted
Kiran
Top achievements
Rank 2
answered on 10 Aug 2010, 08:15 PM
Hi Kristian,
The childwindows and popups are in the App.Popups collection.
You can try the below
Button cancelButton = app.Popups.FirstOrDefault().VisualTree.Find.ByName<Button>("CancelButton");
Refer the below for reference
http://www.telerik.com/automated-testing-tools/community/forums/webui-test-studio-developer-edition/webaii-automation-framework/childwindow-automation-not-working.aspx
Thanks
Kiran
The childwindows and popups are in the App.Popups collection.
You can try the below
Button cancelButton = app.Popups.FirstOrDefault().VisualTree.Find.ByName<Button>("CancelButton");
Refer the below for reference
http://www.telerik.com/automated-testing-tools/community/forums/webui-test-studio-developer-edition/webaii-automation-framework/childwindow-automation-not-working.aspx
Thanks
Kiran
0
Hi Kristian Freed,
Can you share with us your code you're using for your Silverlight automation? I also wonder if you enabled Silverlight in the settings object. For example:
Kind regards,
Cody
the Telerik team
Can you share with us your code you're using for your Silverlight automation? I also wonder if you enabled Silverlight in the settings object. For example:
Settings settings = GetSettings();
// Override the settings you want. For example:
settings.EnableSilverlight =
true
;
// Now call Initialize again with your updated settings object
Initialize(settings,
new
TestContextWriteLine(
this
.TestContext.WriteLine));
Kind regards,
Cody
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
0
Kristian Freed
Top achievements
Rank 1
answered on 11 Aug 2010, 10:08 AM
I didn't realize the child windows were in a separate collection, now that I look for them in the right place everything works as expected. Thank you!