DW.CodedUI 2.4.1

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package DW.CodedUI --version 2.4.1
NuGet\Install-Package DW.CodedUI -Version 2.4.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DW.CodedUI" Version="2.4.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DW.CodedUI --version 2.4.1
#r "nuget: DW.CodedUI, 2.4.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DW.CodedUI as a Cake Addin
#addin nuget:?package=DW.CodedUI&version=2.4.1

// Install DW.CodedUI as a Cake Tool
#tool nuget:?package=DW.CodedUI&version=2.4.1

DW.CodedUI - Test your UI fast and easy.

* Its written in .Net 4.0
* Its built to be used in Visual Studio 2013 (VS 2015 is not supported yet since it build against older versions of some MS assemblies)
* Its developed under the MIT license
* Visual Studio >= Premium is needed for the UI test environment

Documentation: http://www.my-libraries.com/index.php/2-uncategorised/26-dw-codedui-downloads

How to use with a "getting started" example is in the visual studio template on the same page at the button.

Quick info:
Search for Windows using WindowFinder.Search, for searching of UI elements in it use UI.GetChild.
The UI element then has a lot of information and can be used with the MouseEx and KeyboardEx.

There can be some problems with dll files if used in a standard CodedUI project, I recommend to use the given template.
Its a standard UnitTest project with all needed dll files referenced and added.

1. Create new unit test project
2. Add some references (see template)
3. Add the dll file "interop.*" explicitelly (see template) (If you don't it will not work properly since MS put two objects with the same names in two different dlls
4. Add new test class
5. Change the attribute [TestClass] to [CodedUITest]


The first start might be hard, but using this dll brings a performance benefit with abot 300% alongside the MS CodedUI recordings and it is much more easy to use and changeable.

[CodedUITest]
public class GetStartet
{
   private BasicWindow _target;

   [TestInitialize]
   public void Setup()
   {
       Do.Launch(@"C:\TestApplication\App.exe").And.Wait(3000);

       _target = WindowFinder.Search(Use.Title("Applicationtitle to test"), And.NoTimeout());
   }

   [TestCleanup]
   public void Cleanup()
   {
       if (_target != null && _target.IsAvailable && _target.CanClicked)
           MouseEx.Click(_target.CloseButton).And.WaitCPUIdle(5);
   }

   [TestMethod]
   public void DoButtonClicked_ShowsMessageBox()
   {
       var buttonToClick = UI.GetChild<BasicButton>(By.AutomationId("CUI_MessageBoxButton"), From.Element(_target));

       MouseEx.Click(buttonToClick);

       var messageBox = WindowFinder.Search<BasicMessageBox>(Use.Title("Something"), And.NoAssert().And.Timeout(1000));
       Assert.IsNotNull(messageBox);
       MouseEx.Click(messageBox.OKButton);
   }
}


For any additional questions contact me and I try to help.

Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated