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

Is it a good practice to use HtmlControls instead of other Controls(like HtmlOption, HtmlDiv etc.)

1 Answer 21 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vishal
Top achievements
Rank 1
Vishal asked on 03 Feb 2014, 05:59 AM
Hi,

We have developed a tool agnostic framework. In our framework we have developed the wrapper classes that converts all the other controls like htmlInputControl, HtmlOption, HtmlDiv  etc.. to HtmlControls  and then using the methods which are provided by HtmlControls to perform the relevant actions.

Is it a good practice to do  it .

1 Answer, 1 is accepted

Sort by
0
Velin Koychev
Telerik team
answered on 06 Feb 2014, 09:23 AM
Hi Vishal,

Usually it is a better decision to use the methods that are provided for the specific controls (HtmlOption, HtmlDiv, etc.).  This should prevent you from making mistakes while you write your code and gives you more options for the specific controls.

I hope this helps. 

Regards,
Velin Koychev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Vishal
Top achievements
Rank 1
Answers by
Velin Koychev
Telerik team
Share this question
or