T function ( WebDriver arg0 , Class < T > arg1 ) { T loc0 = instantiatePage ( arg0 , arg1 ) ; initElements ( arg0 , loc0 ) ; return loc0 ; }
instantiate an instance of the given class , and set a lazy proxy for each of the webelement and list < webelement > fields that have been declared , assuming that the field name is also the html element 's `` id '' or `` name '' . this means that for the class : public class page private webelement submit ; there will be an element that can be located using the xpath expression '' / / @id = ` submit ' '' or '' / / @name = ` submit ' '' by default , the element or the list is looked up each and every time a method is called upon it . to change this behaviour , simply annotate the field with the cachelookup . to change how the element is located , use the findby annotation.this method will attempt to instantiate the class given to it , preferably using a constructor which takes a webdriver instance as its only argument or falling back on a no-arg constructor . an exception will be thrown if the class can not be instantiated . concode_field_sep PlaceHolder placeHolder concode_field_sep T instantiatePage concode_elem_sep void proxyFields