Is this possible to create something like Find.Elements.By.Name(string name)
using fluent api design pattern in c#? If so, how?
Asked
Active
Viewed 39 times
0

Jason
- 1,680
- 3
- 13
- 16
-
Maybe create an extension method for collection of Elements `Elements.FindByName` – Fabio Apr 22 '19 at 23:04
-
@Fabio Thanks! I found a way to implement this. – Jason Apr 23 '19 at 00:29
1 Answers
0
A way to implement this:
public class Find
{
public struct Elements
{
public struct By
{
public static WindowsElement Name(string name)
{
// code here
}
}
}
}

Jason
- 1,680
- 3
- 13
- 16