org.openqa.selenium.support.pagefactory.DefaultFieldDecorator Java Examples

The following examples show how to use org.openqa.selenium.support.pagefactory.DefaultFieldDecorator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PageFactory.java    From selenium with Apache License 2.0 2 votes vote down vote up
/**
 * 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);
}