下面列出了怎么用org.openqa.selenium.support.pagefactory.DefaultFieldDecorator的API类实例代码及写法,或者点击链接到github查看源代码。
/**
* Similar to the other "initElements" methods, but takes an {@link ElementLocatorFactory} which
* is used for providing the mechanism for finding elements. If the ElementLocatorFactory returns
* null then the field won't be decorated.
*
* @param factory The factory to use
* @param page The object to decorate the fields of
*/
public static void initElements(ElementLocatorFactory factory, Object page) {
initElements(new DefaultFieldDecorator(factory), page);
}