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

2 posts, 0 answers
  1. Vishal
    Vishal avatar
    18 posts
    Member since:
    Jan 2014

    Posted 02 Feb 2014 Link to this post


    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 .
  2. Velin Koychev
    Velin Koychev avatar
    88 posts

    Posted 06 Feb 2014 Link to this post

    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. 

    Velin Koychev
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top