Childwindow trouble

3 posts, 0 answers
  1. Justin Weinberg
    Justin Weinberg avatar
    2 posts
    Member since:
    Mar 2010

    Posted 18 Jun 2010 Link to this post

    I'm trying to automate the inital logging in for our application tests which is a popup.

    I've tried registering the ChildWindow both in its contructor and after it's show method using the new Track() method in both the official and latest build.  When debugging the Silverlight application, I can verify that the popup count is one and that it is indeed being tracked.

    But in my test (nunit) it always shows the popup count as zero regardless of when I register it or if I call RefreshVisualTrees() in the test.  We are using Prism and SL4 so it might be Prism related, but in this case we are explicitly newing up the item rather than using Unity.

    Any suggestions?

    Much thanks!

    Edit - I should mention we are using the Telerik silverlight controls which has its own popup tracking method and calling that method rather than adding the popup DLL.  Is this the issue?  If I add the popup dll VS2010 complains that the same code is declared in both DLLs.
  2. Justin Weinberg
    Justin Weinberg avatar
    2 posts
    Member since:
    Mar 2010

    Posted 18 Jun 2010 Link to this post

    I figured it out.

    In case anyone else runs into this, it was some sort of compatibility issue with the Telerik.Controls dll's version of Track(). 

    To resolve this, I set an alias on the TrackPop dll (the version that comes with WebAii) and then used the "extern" keyword to refer to the Popup window:
    extern alias trackpop;

    Then to track the popup:
    trackpop.Telerik.WebUI.PopupTracker.Track(appLogin);

    I hope this helps someone! 

Back to Top