Predicate(String, String) Method

Definition

Assembly HeadlessTestingFramework.dll

Locates elements using a custom predicate.

public static By Predicate(string description, string predicateKey)

Parameters

description
String

Description of the predicate for error messages.

predicateKey
String

A unique key identifying this predicate.

Returns

By
A By locator for custom predicate matching.

Remarks

The actual predicate function is passed when calling FindElement.