10 lines
No EOL
312 B
C#
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);
|
|
}
|
|
} |