Browsed by
Tag: Selenium WebDriver

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

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

A week of frustration

A week of frustration

DI frameworks are painful! This was a tough week and I am afraid that I don’t have any working code for you this week. I still have emotional scars from my attempts to configure dependency injection with Spring at work. After a lot of pain we eventually decided to use Google Guice and with it set up and running I don’t have too many problems adding to my framework. When I do mess it up however I find it very…

Read More Read More

Parameterisation with JUnit5

Parameterisation with JUnit5

The background This was never intended to be an article in itself, but one of the problems with working on this late at night, is that sometimes I have to finish up, even though I know that there is another simple change I would like to make. In this case, my DriverFactoryTests were just screaming out for parameterisation. I know I had added some Windows 10 checks in there, but as I was of course running the tests over a…

Read More Read More

Starting with the Page Object Model / Page Factory

Starting with the Page Object Model / Page Factory

Breaking news. Today is my 47th Birthday and it seems that the JUnit team have given me a birthday present with the announcement of JUnit 5.0 General Availability Release today. As of now, it is not in Maven central so I’m still with the release candidate, but I look forward to checking it out soon.   I have started off this blog looking at some of the basics of setting up and running basic tests using JUnit and Selenium WebDriver….

Read More Read More