This solution demonstrates automated testing web pages for TfL website – Journey Planner widget, with Selenium and C# .Net 6.0 The test test solution which uses xUnit, Fluent Assertions, and PageObject pattern
Download project
Install specflow for Visual studio (https://marketplace.visualstudio.com/items?itemName=TechTalkSpecFlowTeam.SpecFlowForVisualStudio2022)
Update 'browser types' to Chrome/ HeadlessChrome at appSettings.Json
Build project (Dependencies should be updated automatically)
Run tests directly from Visual Studio - Test explorer\