How Dailymotion is using WinAppDriver UI Recorder (Updated version) to do its UI Test Automation on its Windows Application

Delaire Damien
2 min readOct 25, 2019

This is a follow up article for my original: dailymotion uses WinAppDriver to do its UI Test Automation on its Windows Application.

Going over WinAppDriver UI Recorder

Here is a quick overview of how to use WinAppDriver UI Recorder.

As you can see setting up UI tests are much simpler then before! All you will now need to do it record the click path to what you wish to test.

UI Recorder @Dailymotion

First head to Github and clone the repo.

Next, launch the Visual Studio project called WinAppDriverUIRecorder.sln wich is located under WinAppDriver\Tools\UIRecorder

Locating Elements

It is much easier then what we previously had to do to find the XPath of an element.

You can even get the C# code generated to find how to generate a click event:

The scenario is: try and see if when we access the video view if we can click on the favorites button (the heart).

All I needed to do was put my mouse over the heart logo wait for UI recorder to find the path, click on the heart and the C# code was generated for me.

Test Methods

Full sample of using UI record generated C# code for UI testing

As you can see the generated code is not the prettiest but it works.

Here you have it, we have gone over how we at dailymotion are using the updated version of WinAppDriver UI Recorder to do our UI Test Automation on our UWP Application. As of today we have updated all of our UI test and some or these test are still using the old way of finding our elements which you can find here.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Delaire Damien
Delaire Damien

Written by Delaire Damien

Technical Lead on (Windows & Smart TV apps) @Dailymotion, Windows Mobile/ Xbox/ Desktop Lover. Entrepreneur in spirit, I love working on side projects

No responses yet

Write a response