HtmlFindExpression replacement of FindParam

2 posts, 0 answers
  1. George McCarroll
    George McCarroll avatar
    7 posts
    Member since:
    May 2010

    Posted 12 Nov 2010 Link to this post

    Hi!

    I was unable to find any examples of converting code that uses FindParam to HtmlFindExpression.  I make extensive use if FindParam but with the latest revision 2010.3.1109 I found that it's being depricated.

    Here is an example of how I use FindParam:

     

    FindParam findParam = new FindParam("input", 3, "type=checkbox");

     


    However, HtmlFindExpression doesn't allow the use if the tagname or index like FindParam.  Can you point me to examples of converting ot the new way?

    Thanks,

    George
  2. George McCarroll
    George McCarroll avatar
    7 posts
    Member since:
    May 2010

    Posted 12 Nov 2010 Link to this post

    I figured it out:

                HtmlFindExpression fe = new HtmlFindExpression("TagName=input", String.Format("TagIndex={0}", index), "Type=checkbox");
                HtmlFindExpression fe = new HtmlFindExpression("TagName=input", String.Format("TagIndex={0}", index), "Type=checkbox");
    HtmlFindExpression fe = new HtmlFindExpression("TagName=input", String.Format("TagIndex={0}", index), "Type=checkbox");

    Thanks,

    George
Back to Top