I am looking to generate simple UI tests for Windows Application, for example launch an application from the start menu and open a file with that said application.
I am looking to allow any user to record a simple UI test as above, I have been looking Microsofts WinAppDriver and yes the driver itself is good for running tests as per samples given from running via test explorer.
I have been looking at the UIrecorder provided within the Git and its seems to fit some of my requirements.
I am currently logging the RecordedUiTask but i don't understand what the C# generated MyDesktopSession object is and how to initialise it in a test.
Example below:
string xp0 = "/Pane[@Name=\"Desktop 1\"][@ClassName=\"#32769\"]/Window[@Name=\"Untitled - Notepad\"][@ClassName=\"Notepad\"]/Document[@Name=\"Text Editor\"][@ClassName=\"Edit\"]";
var winElem0 = MyDesktopSession.FindElementByXPath(xp0);
if (winElem0 != null)
{
winElem0.Click();
}
I don't know if there is reasonably priced commercial software available to do this or open source software?