Class Locator

An element locator.

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(using: string, value: string): Locator

An element locator.

constructor

Parameters

  • using: string

    The type of strategy to use for this locator.

  • value: string

    The search target of this locator.

Returns

Locator

Properties

public using: string

The search strategy to use when searching for an element.

type

{string}

public value: string

The search target for this locator.

type

{string}

Methods

public toString(): string

Returns

string

String representation of this locator.