Browsed by
Tag: Single Responsibility Principle

C# PageFactory – Starting with Controllers

C# PageFactory – Starting with Controllers

This entry is part 3 of 5 in the series Building a .Net Core PageFactory Framework

Last time I explained why I use methods rather than properties in making calls to a Selenium WebDriver. This time I am going to start explaining how I go about writing maintainable code in PageController classes to interact with an HTML page through the WebDriver, and try to ground my decisions in the SOLID design prinicples. Note I am calling them controllers rather than Page Objects. I feel that the classic PageObject violates the first of the SOLID design principles,…

Read More Read More