Chained(By[]) Method

Definition

Assembly HeadlessTestingFramework.dll

Creates a chained locator for finding nested elements.

public static By Chained(params By[] locators)

Parameters

locators
By[]

The locators to chain.

Returns

By
A By locator for chained searching.

Examples

var element = driver.FindElement(By.Chained(By.Id("container"), By.ClassName("Button")));