autoteams/Selectors.cs
2022-11-12 02:36:48 +01:00

10 lines
No EOL
312 B
C#

using OpenQA.Selenium;
namespace autoteams
{
public static class Selectors
{
public static By ByAttribute(string attributeName, string attributeValue) => By.XPath($"//*[@{attributeName}='{attributeValue}']");
public static By ByTitle(string title) => ByAttribute("title", title);
}
}