BasicPath.PathBuilder

public static final class PathBuilder

A builder for BasicPath. Usually customElement(String) is simpler and sufficient.

Constructors

PathBuilder

public PathBuilder()

PathBuilder

public PathBuilder(Optional<String> insideXpath, Optional<String> xpath, Optional<String> xpathExplanation, Optional<String> describedBy, Optional<WebElement> underlying, List<ElementProperty> elementProperties, Optional<String> alternateXpath)

Methods

build

public BasicPath build()

withAlternateXpath

public PathBuilder withAlternateXpath(String alternateXpath)

withAlternateXpathOptional

public PathBuilder withAlternateXpathOptional(Optional<String> alternateXpath)

withDescribedBy

public PathBuilder withDescribedBy(String describedBy)

withDescribedByOptional

public PathBuilder withDescribedByOptional(Optional<String> describedBy)

withElementProperties

public PathBuilder withElementProperties(List<ElementProperty> elementProperties)

withInsideXpath

public PathBuilder withInsideXpath(String insideXpath)

withInsideXpathOptional

public PathBuilder withInsideXpathOptional(Optional<String> insideXpath)

withUnderlying

public PathBuilder withUnderlying(WebElement underlying)

withUnderlyingOptional

public PathBuilder withUnderlyingOptional(Optional<WebElement> underlying)

withXpath

public PathBuilder withXpath(String xpath)

withXpathExplanation

public PathBuilder withXpathExplanation(String xpathExplanation)

withXpathExplanationOptional

public PathBuilder withXpathExplanationOptional(Optional<String> xpathExplanation)

withXpathOptional

public PathBuilder withXpathOptional(Optional<String> xpath)