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);
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.
System.Func<OpenQA.Selenium.IWebDriver,OpenQA.Selenium.IWebElement>
A self-reference to this OpenQA.Selenium.IWebElement.