All(By[]) Method

Definition

Assembly HeadlessTestingFramework.dll

Combines multiple locators with AND logic.

public static By All(params By[] locators)

Parameters

locators
By[]

The locators to combine.

Returns

By
A By locator that matches all conditions.

Examples

var element = driver.FindElement(By.All(By.ClassName("Button"), By.Text("Submit")));