Locator


enum Locator


Valid WebDriver locatorType types.

Summary

Public functions

java-static Locator!
valueOf(name: String!)

Returns the enum constant of this type with the specified name.

java-static Array<Locator!>!

Returns an array containing the constants of this enum type, in the order they're declared.

Public properties

String!

Enum Values

CLASS_NAME

val Locator.CLASS_NAMELocator

CSS_SELECTOR

val Locator.CSS_SELECTORLocator

ID

val Locator.IDLocator
val Locator.LINK_TEXTLocator

NAME

val Locator.NAMELocator
val Locator.PARTIAL_LINK_TEXTLocator

TAG_NAME

val Locator.TAG_NAMELocator

XPATH

val Locator.XPATHLocator

Public functions

valueOf

java-static fun valueOf(name: String!): Locator!

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Returns
Locator!

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

java-static fun values(): Array<Locator!>!

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Returns
Array<Locator!>!

an array containing the constants of this enum type, in the order they're declared

Public properties

type

val typeString!