CRM 2011 and SilverLight

4 posts, 0 answers
  1. Saket
    Saket avatar
    22 posts
    Member since:
    Sep 2011

    Posted 27 Sep 2011 Link to this post

    Hi,

    I am using the Webaii dll along side VSTS to develop some test scripts for automation of CRM 2011, in one of the test case we have a simple silver light control embedded in the Account form, I wanted to have a click action on the button.
    However i am unable to acess the button, as a matter of fact the Developer tool provided on IE can catch the frame but not the id of the button inside (only for SL).
    Can any one suggest an article or approach to access the controls inside the embedded SL on a CRM from.
    I have added the SL as a web resource (xap) on the form.

    Any help appriciated...

    Thanks,
    Saket
  2. Saket
    Saket avatar
    22 posts
    Member since:
    Sep 2011

    Posted 30 Sep 2011 Link to this post

    Hi,

    To enhance the topic more the innrrtext of the tablecell that is accessed via webaii gives mr the below
    <OBJECT style="WIDTH: 100%; HEIGHT: 100%; VISIBILITY: visible" id=WebResource_Silverlight tabIndex=1070 data="data:application/x-oleobject;base64,QfXq3+HzJEysrJnDBxUISgAJAAANXgAA4g4AAAAAAAAAAAAAAAAAAAAAAABuAAAALwAlADcAQgA2ADMANAA1ADIAOAA3ADQAMAA3ADMAMAAwADAAMAAwADAAMAAlADcARAAvAFcAZQBiAFIAZQBzAG8AdQByAGMAZQBzAC8AcwBhAGsAXwBTAGkAbAB2AGUAcgBsAGkAZwBoAHQAAAA8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8AAAEAAAAAAAAAAAAAAAAAAAAIAAAANAAuADAAAAAAAAAAAAAAAAAAAAAAAAAA" type=application/x-silverlight desiredWidth="0" desiredHeight="0" resizeMode="StretchToFit"><a id="WebResource_Silverlight" href=http://go.microsoft.com/fwlink/?LinkID=124807 style="text-decoration: none;"><img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/></OBJECT>

    The SL app has one button and a textbox, i need to have a ckick event on the SL

    Help appreciated.
    Thanks,
    Saket
  3. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 03 Oct 2011 Link to this post

    Hi Saket,
        if you haven't done so already please checkout the articles we have on this in our user guide:
    http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/write-tests-in-code/silverlight-test-automation/introduction.aspx

    I'm not sure I correctly understand your use case. Also, I don't understand what the XAML code you've pasted is supposed to represent. Automating a Silverlight app with the Telerik Testing Framework is a standardized process. Just follow the example from the article. If you're still unable to get this to work then please give me detailed info on the problem - specifically what exception are you getting?

    Best wishes,
    Stoich
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  4. Hameed
    Hameed avatar
    1 posts
    Member since:
    Jul 2012

    Posted 30 Jul 2012 Link to this post

    Hi Saket,

    Did you get this resolved?

    I am having the same problem in that I have a simple SL hosted in a html page. I have loaded both these as webresources into CRM2011. The SL link from the webresource works fine. When I add the the webpage (that hosts the Silverlight control) I get a blank page load... when I check the Text Editor within the web resource and look at the source, I see that the object tag has been encoded ..(oleobject;base64 ...).

    I have already spent enough time on this. Any help would be greatly appreciated.

    Kindest Regards
    Hameed.
Back to Top