This is a migrated thread and some comments may be shown as answers.
CRM 2011 and SilverLight
3 Answers 45 Views
This is a migrated thread and some comments may be shown as answers.
Saket
Top achievements
Rank 1
Saket asked on 28 Sep 2011, 04:58 AM
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

3 Answers, 1 is accepted

Sort by
0
Saket
Top achievements
Rank 1
answered on 30 Sep 2011, 07:08 AM
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
0
Stoich
Telerik team
answered on 03 Oct 2011, 12:22 PM
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.
0
Hameed
Top achievements
Rank 1
answered on 30 Jul 2012, 01:18 PM
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.
Asked by
Saket
Top achievements
Rank 1
Answers by
Saket
Top achievements
Rank 1
Stoich
Telerik team
Hameed
Top achievements
Rank 1
Share this question
or