public static void Main()
var page = new HomePage();
var button = page.FindId("test");
Console.WriteLine(button.Text);
public class ElementScope
public string Text => $"You got text from element '{Id}'";
public string Value => $"You got the value of input element '{Id}'";
public string Id { get;set;}
Console.WriteLine($"You clicked on element {Id}");
public ElementScope(string identifier)
public abstract class BasePage
public ElementScope FindId(string id)
return new ElementScope(id);
public class HomePage : BasePage