How would you filter by the "class" attribute since class is a restricted keyword in C#?

Nov 27, 2012 at 1:24 AM


var sut = Browser.Find<HtmlDiv>(new
      class = "classvalue
Nov 27, 2012 at 3:54 PM


var sut = Browser.Find<HtmlDiv>("class", "classvalue");


The Find<T>(string,string) method is handy when you want to search or filter on attributes not defined in the PropertyNames Collection of the Control