Browsed by
Tag: WebDriverFactory

Launching Selenium WebDriver in .NET Core the easy way

Launching Selenium WebDriver in .NET Core the easy way

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

In this post I am finally pleased to sum up the last of my experiences releasing Open Source libraries to help launching Selenium WebDriver instances in .NET Core projects. Whilst actually the last of the posts chronologically in this series I am placing it as post number 1, feel free to skip to the next one and read through before coming back if you want the story in the order that I wrote it. Writing the code of an Open…

Read More Read More

Testability, interfaces and unit tests for Dummies (and junior SDETs)

Testability, interfaces and unit tests for Dummies (and junior SDETs)

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

Having got to version 2.0.0 of my WebDriverFactory with working system tests and CI builds it was time to extend things a little. This could be considered YAGNI (You Aren’t Gonna Need It) but I quite like to have a Manager class that deals with getting and closing down WebDriver instances. The idea is that the Manager knows the specifics of the driver that I want to use, and will return a given instance, or a new instance on request….

Read More Read More

Creating an internal WebDriverFactory

Creating an internal WebDriverFactory

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

Last time I showed how to launch a WebDriver instance from .NET core so that we can test on any platform. When creating a framework however I like to have a factory to handle the driver creation and setup for me. I don’t wan’t to have to mess around setting things up in my Test class every time. My .NET core WebDriverFactory design criteria: It should have really simple syntax, especially for creating a ‘default’ webdriver. It should handle local…

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