Example usage for org.openqa.selenium.support.pagefactory AbstractAnnotations isLookupCached

List of usage examples for org.openqa.selenium.support.pagefactory AbstractAnnotations isLookupCached

Introduction

In this page you can find the example usage for org.openqa.selenium.support.pagefactory AbstractAnnotations isLookupCached.

Prototype

public abstract boolean isLookupCached();

Source Link

Document

Defines whether or not given element should be returned from cache on further calls.

Usage

From source file:com.common.seleniumlib.CustomElementLocator.java

License:Apache License

/**
* Use this constructor in order to process custom annotaions.
*
* @param searchContext The context to use when finding the element
* @param annotations AbstractAnnotations class implementation
*///w ww .  ja  v  a  2  s  . c om
public CustomElementLocator(SearchContext searchContext, AbstractAnnotations annotations) {
    this.searchContext = searchContext;
    this.shouldCache = annotations.isLookupCached();
    this.by = annotations.buildBy();
}