Browsed by
Tag: C# Selenium

C# PageFactory – Why I don’t use properties.

C# PageFactory – Why I don’t use properties.

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

In my most popular post ‘C# and the disappearing PageFactory – My next steps in Selenium testing’ I gave Jim Evans suggested approach of using properties to return the response from your page controllers. I have never used this approach however, and before start discussing how I do build them, I thought I should explain why.

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

Launching WebDrivers in .net Core

Launching WebDrivers in .net Core

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

As discussed last time, the goal is to be able to run my tests on any .net Core platform. So right from the get go, lets work out how to get a WebDriver fired up. As ever I develop on Windows and I still have Ubuntu 18.4 installed on the Windows Subsystem for Linux (WSL) with an Xming Xserver so in theory I can also test in Linux. Unfortunately, whatever happened to my network whilst I was on holiday finally…

Read More Read More