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

Can we pass HtmlContainerControl to find the parent

1 Answer 73 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Hari
Top achievements
Rank 1
Hari asked on 01 Jun 2011, 10:45 AM
Hi Folks,

I am passing the HtmlContainerControl in below statement

 

 

 

ParentControl.Parent<HtmlContainerControl>().Find.ByExpression<HtmlUnorderedList

>("")

But the statement is not executing and producing the Error: "ArtOfTest.WebAii.Controls.HtmlControls.HtmlContainerControl' is not natively recognized by the framework and its Control.LocatorExpression and Control.Locator properties are not implemented. If you want a custom control to participate in generic Find functions, please implement Control.LocatorExpression"

Can you please let me know what's wrong here.

Thanks,
Hari

 

 

1 Answer, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 06 Jun 2011, 09:43 AM
Hi Hari,
   please describe your use case. If you're just trying to get an HTML element there's no need to use the HtmlContainerControl class.

Please check out the section on Element Indentificiation in our User Guide here:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/telerik-testing-framework/intermediate-topics/element-identification/finding-page-elements.aspx
It should help you get started with locating HTML elements with Telerik's Testing Framework.

All the best,
Stoich
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
General Discussions
Asked by
Hari
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Share this question
or