Hi,
I am running Win 7, IE 9 (ver.: 9.0.8112.16421), WebAii 2.0
In VS 2010 I have a short test project that simply:
- runs a browser and navigates to our SL app
- finds it
- gets its VisualTree
- and does some clicking and checking
The problem is, that the app seeking is too slow. It takes from 35 to 50 seconds.
EDIT: It is not the seeking, but the copying of the application to "SilverLightApp slapp" object that takes too long
I tried to navigate to your demos site and it took "only" 5 seconds to find your demo app.
The time between two clicks (loops) is long too (10 - 15 seconds).
While debugging in VS, opening the found VisualTree or any sub-branch is slow too.
I tried to clean my cache before every test / after every test - didn't help.
I tried to run our app from a server instead of localhost - didn't help
I tried the other approach (ActiveBrowser.SilverlightApps()[hostId]) - didn't help
I tried Firefox, Chrome - didn't help
I have no idea what can be wrong.
Something in the app settings?
Something in browser / internet settings?
Or is our SL app so HUGE? (it is a bit, as you say, "complex")
The main problem may be, that the app works a lot with graphics, therefore it may be too huge.
here is the code widget:
Manager.LaunchNewBrowser();
ActiveBrowser.NavigateTo(url);
SilverlightApp slapp = ActiveBrowser.SilverlightApps()[0]; // 40 - 50 seconds
VisualTree vt = slapp.VisualTree;
FrameworkElement menu = vt.Find.ByName(
"Menu"
);
StackPanel btnStack = menu.Find.ByName<StackPanel>(
"StackPanel1"
);
for
(
int
i = 5; i >= 0; i--)
{
FrameworkElement el = btnStack.Children[i];
el.User.Click(MouseClickType.LeftClick, 0, 0,
ArtOfTest.Common.OffsetReference.AbsoluteCenter); // apx. 15 seconds between clicks
}
Thx