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

[Solved] No implicit reference conversion

3 Answers 138 Views
Telerik Testing Framework
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David
Top achievements
Rank 1
David asked on 22 Oct 2009, 04:11 PM
My test class is failing compilation on this line of code, which comes straight from the Webaii samples:

RadMaskedTextBox

 

dateBox = myManager.ActiveBrowser.Find.ById<RadMaskedTextBox>("DatePicker1");

 


The error message is as follows:

Error 1 The type 'Telerik.Web.UI.RadMaskedTextBox' cannot be used as type parameter 'TControl' in the generic type or method 'ArtOfTest.WebAii.Core.Find.ById<TControl>(string)'. There is no implicit reference conversion from 'Telerik.Web.UI.RadMaskedTextBox' to 'ArtOfTest.WebAii.Controls.Control'. C:\DotNet\com\fetterlogic\Platform\Standards\Trunk\ApplicationCodingStandards\ApplicationCodingStandards\UnitTests\DatePickerTests.cs 46 39 ApplicationCodingStandards_Web

Does anybody have any idea why this might be failing?

Thanks!

David

3 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 22 Oct 2009, 04:35 PM
Hello David,

The WebAii RadControls wrappers reside in their own assembly namely Telerik.WebAii.Controls.Html, which you need to refer. Instead, from the error you pasted it seems you attempt to use Telerik.Web.UI.RadMaskedTextBox in a WebAii test, which is not possible.

Generally you compile the WebAii tests in a Test Project where the RadControls have no place. The WebAii tests launch the browser, navigate to the page under test and execute there.

I hope this helps.

Kind regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
David
Top achievements
Rank 1
answered on 22 Oct 2009, 04:56 PM
Thanks, Konstantin. That is helpful. Can you tell me where to get the Telerik.WebAii.Controls.Html dll?

David
0
David
Top achievements
Rank 1
answered on 22 Oct 2009, 05:08 PM
I found it. Thanks, anyway!

C:\Program Files\telerik\WebAii Testing Framework BETA\ASP.NET AJAX\Binaries
Tags
Telerik Testing Framework
Asked by
David
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
David
Top achievements
Rank 1
Share this question
or