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

HtmlFindExpression replacement of FindParam

1 Answer 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
George McCarroll
Top achievements
Rank 1
George McCarroll asked on 12 Nov 2010, 05:21 PM
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

1 Answer, 1 is accepted

Sort by
0
George McCarroll
Top achievements
Rank 1
answered on 12 Nov 2010, 10:05 PM
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
Tags
General Discussions
Asked by
George McCarroll
Top achievements
Rank 1
Answers by
George McCarroll
Top achievements
Rank 1
Share this question
or