Browsed by
Tag: Page Factory

Going multi-platform: Running the tests from MacOs and Linux

Going multi-platform: Running the tests from MacOs and Linux

Just a quickie tonight. Part of the reason for writing anything in Java is its ability to run on many devices. Before I move on from Java to dotnet and C# there are a couple of things to complete. In principle it should be no problem to call gradle to run my tests on both Linux and Macos. I’m going to cheat a little with Linux by running on Ubuntu on the Windows Subsystem for Linux. While we are at…

Read More Read More

Going Multi-Platform – Adding a Mac to the Grid: Part 2

Going Multi-Platform – Adding a Mac to the Grid: Part 2

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

Last time I discussed the differences in setting up a Mac as a node on a Selenium grid. That is not even half the battle however as I also need to get the supporting code in the framework and find out if I have to work around any differences in the WebDriver implementations. Back in January I wrote some tests checking that the framework was launching the correct browser and getting this working properly. I enjoy the challenge of writing…

Read More Read More

C# and the disappearing PageFactory – My next steps in Selenium testing

C# and the disappearing PageFactory – My next steps in Selenium testing

This entry is part 1 of 5 in the series Building a .Net Core PageFactory Framework

Being an Open Source project maintainer is a thankless task Ask Jim Evans, the maintainer of the C# (aka dotnet) language bindings for Selenium Webdriver as well as as the Internet Explorer driver that I am sure just about everyone who has ever written a Selenium test has used. Until I started my new job at Altitude Angel 16 days ago I had spent very little time worrying about the C# language bindings as I have been working in Java. As…

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

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