Locator

public final enum Locator
extends Enum<Locator>

java.lang.Object
   ↳ java.lang.Enum<androidx.test.espresso.web.webdriver.Locator>
     ↳ androidx.test.espresso.web.webdriver.Locator


Valid WebDriver locatorType types.

Summary

Enum values

Locator  CLASS_NAME

 

Locator  CSS_SELECTOR

 

Locator  ID

 

Locator  LINK_TEXT

 

Locator  NAME

 

Locator  PARTIAL_LINK_TEXT

 

Locator  TAG_NAME

 

Locator  XPATH

 

Public methods

String getType()
static Locator valueOf(String name)
static final Locator[] values()

Inherited methods

Enum values

CLASS_NAME

public static final Locator CLASS_NAME

CSS_SELECTOR

public static final Locator CSS_SELECTOR

ID

public static final Locator ID

public static final Locator LINK_TEXT

NAME

public static final Locator NAME

public static final Locator PARTIAL_LINK_TEXT

TAG_NAME

public static final Locator TAG_NAME

XPATH

public static final Locator XPATH

Public methods

getType

public String getType ()

Returns
String

valueOf

public static Locator valueOf (String name)

Parameters
name String

Returns
Locator

values

public static final Locator[] values ()

Returns
Locator[]