Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 2.04 KB

File metadata and controls

23 lines (20 loc) · 2.04 KB

ExpectedConditions.AttributeMatches(OpenQA.Selenium.By, string, string) Method

An expectation for the given element's attribute to match a pattern.

public static System.Func<OpenQA.Selenium.IWebDriver,OpenQA.Selenium.IWebElement> AttributeMatches(OpenQA.Selenium.By by, string attribute, string regex);

Parameters

by OpenQA.Selenium.By
The locator used to find the element.

attribute System.String
The attribute name to assert against the pattern.

regex System.String
The regular expression that the attribute should match.

Returns

System.Func<OpenQA.Selenium.IWebDriver,OpenQA.Selenium.IWebElement>
A self-reference to this OpenQA.Selenium.IWebElement.