Browsed by
Tag: WebDriverManager

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

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

All is not as it seems: Checking the right browser launched

All is not as it seems: Checking the right browser launched

This entry is part 2 of 5 in the series Building a WebDriver Grid

When tests don’t work…. One of those issues that I could very easily have missed. Over Christmas, in between working through CheckStyle hell I had a play around with adding Opera to the list of browsers available on my grid. I know its kind of pointless as being based on the same engine as Chrome, but it is one of my favourite browsers so I thought I’d give it a go. I’ve made a few incremental changes to my grid…

Read More Read More

Bye bye JUnit 4, hello WebDriver 3.6.0 and some firsts.

Bye bye JUnit 4, hello WebDriver 3.6.0 and some firsts.

A lot has happened this week! So although I have completed the code changes and committed already. I don’t think I will get it all explained in this post. Probably a multi part post for you this week. So I was wrong! JUnit 5 can be used to do everything I want as of now so it is finally time to get rid of my JUnit4 compatibility. If you recall I was hanging on to it as I could not…

Read More Read More