类org.openqa.selenium.support.pagefactory.DefaultFieldDecorator源码实例Demo

下面列出了怎么用org.openqa.selenium.support.pagefactory.DefaultFieldDecorator的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: selenium   文件: PageFactory.java
/**
 * 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);
}
 
 类所在包
 同包方法