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

Firefox - silverlight application is not found

9 Answers 124 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Flavia
Top achievements
Rank 1
Flavia asked on 14 Sep 2010, 04:34 PM

Hi,

i tried to automate a web page containing a Silverlight application with WebAii automation framework. If i try to load the page manually in IE8 and Firefox, all works as expected. 
In a NUnit test, with IE8 the Silverlight application is loaded correctly and i can find all controls, but for Firefox3.6.9 the test framework does not find the SilverlightApp object. The error is: System.TimeoutException : Timeout trying to connect to Silverlight App.
After this error, Firefox manual proxy settings are not removed (even if in [TearDown] enableSilverlightApplication is set to false). 

Firefox is configured as in http://www.artoftest.com/support/webaii/topicsindex.aspx, Firefox section.
Are there some more settings to be able to automate the web page in Firefox?

Thanks,

Flavia

9 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 14 Sep 2010, 11:20 PM
Hello Flavia,

We have a known regresion in the current build regarding testing Silverlight applications under the Firefox browser. This good news should be that this should not stop your testing. By the very nature of Silverlight it doesn't matter which browser you use. The same Silverlight client runs in both browsers. The only different might be in how Silverlight gets started by the different browsers. Once started it's the literally the same code running in both browsers.

I'll let you know when we have released a build containing a fix for this problem.

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
Flavia
Top achievements
Rank 1
answered on 15 Sep 2010, 08:33 AM
Hello Cody,

Do you happend to know when will be the WebAii Framework build ready?

Best regards,
Flavia
0
Cody
Telerik team
answered on 15 Sep 2010, 06:52 PM
Hi Flavia,

Sorry no not at this time. It is on our to do list, but isn't our highest priority right now since you should be able to do all Silverlight testing in IE. Is this a show stopper for you? If so can you please tell me how this problem blocks your testing efforts?

Best wishes,
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
Flavia
Top achievements
Rank 1
answered on 16 Sep 2010, 07:41 AM
Hi Cody,

Currently it is not showstopper, but it would be great if one can execute automated tests for silverlight/ html controls on all supported browsers.

Regards,
Flavia
0
Cody
Telerik team
answered on 17 Sep 2010, 07:14 PM
Hi Flavia,

Yes you are correct. I've marked this thread and will send an update when a build is ready containing the fix.

All the best,
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
Cody
Telerik team
answered on 08 Nov 2010, 07:31 PM
Hi Flavia,

This problem is fixed in our Q3 release coming out this week.

Greetings,
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
San
Top achievements
Rank 1
answered on 28 Apr 2011, 06:04 AM

Hi,

I'm using Telerik.WebAii.Framework.2010.3.1607.msi

FF3.0.6

My SL Objects will be loaded after user was logged in successfully.

My code:
Init()
Utilities.GlobalObject.SETTINGS.EnableSilverlight = true;
            Utilities.GlobalObject.SETTINGS.SilverlightConnectTimeout = 60000;
            Utilities.GlobalObject.SETTINGS.ExecuteCommandTimeout = 60000;


            Utilities.GlobalObject.MANAGER = new Manager(Utilities.GlobalObject.SETTINGS);
            Utilities.GlobalObject.MANAGER.Start();
            Utilities.GlobalObject.MANAGER.LaunchNewBrowser();
            Utilities.GlobalObject.MANAGER.ActiveBrowser.Window.Maximize();
            Utilities.GlobalObject.MANAGER.ActiveBrowser.NavigateTo(Utilities.GlobalRunning.SERVER_URL);
            Utilities.GlobalObject.MANAGER.ActiveBrowser.WaitUntilReady();
-------------
Login()
            FATInput.Tradition.TypeTextFieldBYID("Login1_UserName", Utilities.GlobalRunning.SERVER_USER);
            FATInput.Tradition.TypePasswordBYID("Login1_Password", Utilities.GlobalRunning.SERVER_PASSWORD);
            FATInput.Tradition.ClickButtonBYID("Login1_LoginButton");
            Utilities.GlobalObject.MANAGER.ActiveBrowser.WaitUntilReady();
            System.Threading.Thread.Sleep(Utilities.GlobalConfig.INT_WAIT_TIMEOUT_MILISECOND);


            Utilities.GlobalObject.SILVERLIGHTAPP = Utilities.GlobalObject.MANAGER.ActiveBrowser.SilverlightApps()[0];
-----------------

Found exception at Utilities.GlobalObject.SILVERLIGHTAPP = Utilities.GlobalObject.MANAGER.ActiveBrowser.SilverlightApps()[0];

---------- Detail exception
"System.TimeoutException: Timeout trying to connect to Silverlight App.\r\n   at ArtOfTest.WebAii.Silverlight.SilverlightApp.WaitUntilExtensionCreated(String extensionCall)\r\n   at ArtOfTest.WebAii.Silverlight.SilverlightApp.Connect(Int32 timeout)\r\n   at ArtOfTest.WebAii.Silverlight.SilverlightApp.Connect()\r\n   at ArtOfTest.WebAii.Silverlight.SilverlightAppsList.get_Item(Int32 index)\r\n   at FATWelcomePage.WelcomePage.loginSuccess() in D:\\FAT_WebAii\\FATWelcomePage\\WelcomePage.cs:line 39\r\n   at FATWelcomePage.FAT.run(String strSelectedAction) in D:\\FAT_WebAii\\FATWelcomePage\\FAT.cs:line 19\r\n   at FATTestRunner.TestRunner.run(TestSuite tsItem) in D:\\FAT_WebAii\\FATTestRunner\\TestRunner.cs:line 84"

----------

Please help me if there is any way/solutions to fix this issue. It works fine in IE8,9 (32bit).

Seems that the proxy was set on and then the web AUT can not be loaded.
0
Cody
Telerik team
answered on 29 Apr 2011, 10:38 PM
Hi San,

This the same application in which we filed PITS 5080 for, right?

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
San
Top achievements
Rank 1
answered on 04 May 2011, 03:43 AM
Yes.
Tags
General Discussions
Asked by
Flavia
Top achievements
Rank 1
Answers by
Cody
Telerik team
Flavia
Top achievements
Rank 1
San
Top achievements
Rank 1
Share this question
or