How to create Find.Elements.By.Name(string name) in fluent API design?

50 Views Asked by At

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

1

There are 1 best solutions below

0
Jason On BEST ANSWER

A way to implement this:

    public class Find
    {
        public struct Elements
        {
            public struct By
            {
                public static WindowsElement Name(string name)
                {
                    // code here
                }
            }
        }
    }