Browsed by
Tag: Dependency Injection

Starting to build a (new) .net Core PageFactory

Starting to build a (new) .net Core PageFactory

This entry is part 2 of 9 in the series Launching WebDrivers in .NET Core the easy way

I am ridiculously excited to finally be getting back to writing code for this project. In fact I have spent far too long coding, and have left the blogging for a while so I have plenty to catch up on. Episode IV – A new beginning If you followed through my previous posts around building a Selenium WebDriver test framework in Java, you may remember that the last thing that I completed was to get it running cross platform. Anyone…

Read More Read More

Implementing Page Blocks

Implementing Page Blocks

I’ve been looking forward to getting around to this for some time. A chance to have a  go at extending WebDriver’s default PageFactory implementation. So what do I mean by a PageBlock? On many websites there are reusable panels that appear on many pages. Many are repeatable blocks within a page and are used in lists such as the article summaries on the homepage. Others occur on many pages throughout a site but are unique within the page such as…

Read More Read More

Injecting the WebDriver not the manager.

Injecting the WebDriver not the manager.

Sorry! I forgot to mention last time that I was having a week off to spend some quality time with my long suffering wife and kids. I have added a fair deal of code, and I don’t plan on explaining all of it here, just the most relevant. Last time, I managed to get dependency injection working, but not in a way that I was at all happy with. My decision to create WebDriverManager classes led me to create a…

Read More Read More

Dependency injection and abstraction.

Dependency injection and abstraction.

Every rose has its thorn. In the unlikely event that you have read all of my posts, you will be aware that I have had a try at dependency injection before but wasn’t happy enough with the results to push them. After looking at it this week I have managed to understand where my difficulties lie and and implement a solution that works. I’m still not really happy with it, but its enough to be able to get going on…

Read More Read More