ui-automation

Any way to avoid creating a huge C# COM interface wrapper when only a few methods needed?

Greetings all, I’m working on a C# program that requires being able to get the index of the hot item in Windows 7 Explorer’s new ItemsView control. Fortunately, Microsoft has provided a way to do this through UI Automation, by querying custom properties of the control. Unfortunately, the System.Windows.Automation namespace inexplicabl...

Best Automation Frame work design

Using Nunit Frame work or Creating Visual studio Test Projects which one is the best way to save the time and effective automation? Now i am using selenium IDE to script the maximum parts in my application to reduce the time of execution(i feel ide execution is faster than test project execution) using gotoif, while, regexp ..etc and wo...

WPF UI Automation - AutomationElement.FindFirst fails when there are lots of elements

We've got some automated UI tests for our WPF app (.NET 4); these test use the UI Automation API's. We call AutomationElement.FindFirst to find a target element, and then interact with it. Example (pseudocode): var nameEquals = new PropertyCondition(AutomationElement.NameProperty, "OurAppWindow"); var appWindow = DesktopWindow.FindFir...

null object reference with automation enabled flex-application at preloader

Hello, We are trying to automate our flex application. After adding automation libraries to our project we get the following exception: TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.automation::AutomationManager$/addDelegates() at mx.automation::AutomationManager$/addDelegates() at mx.au...

How to make an action in an application whenever a certain text appears in it.

I have an application and I would like to debug its input/output behaviour the same way I can do in a Web environment with Selenium. Do you know any easy to use application for this matter? ...

Why is this .net UIAutomation app leaking/pooling?

I've got an app using .net UIAutomation, it eventually runs out of memory and crashes just monitoring windows being shown and closed. Seemed easier to show this in VB than C# but happens the same either way. It appears to be a leak/pool in the underlying proxy objects. Most of the memory is not being shown as in use as .net memory. An...

UI Test Automation In .NET

I want to know how could I write a program in C# that opens a browser and go to google.com (I did that easily) I want to write code to automate move mouse to the input text field, click the mouse and then enter some text. move mouse to search button and hit it. I know I should deal with iAccessible interface but I did not find any usef...

How can I tell if an element matches a PropertyCondition in Microsoft UI Automation?

I'm trying to find an AutomationElement in a particular row of a GridView (so there are many identical elements). I'm iterating over the elements in the row, and I'd like to use a matcher to see if a particular element matches the Condition I'm passing to it. I'm starting with simple PropertyConditions. Here's my test: [TestFixture] pu...

Can we use UI Automation tools with the iPhone Simulator?

I’ve been using the new UI automation tools with Instruments and the iPhone SDK 4.0, but so far I haven’t been able to get it to run under the iPhone Simulator. I’ve tried setting the target to every location possible—my build folder, the app folder in ~/Library/Application Support/iPhone Simulator, etc.—but I get an error message when I...

How do I find a Silvlerlight object on an Asp.Net page using Microsoft UI Automation testing?

I have an object on my asp.net page hosting a Silverlight xap (in my particular case it is in an IFrame, but I'm curious about regular objects as well). I can find the element in UI Spy, but the name just says "Silverlight Control". Trying to find that AutomationElement in my automated test is unsuccessful (control is null every time). I...

GUI-Test automation: Finding WinForms buttons via pinvoke with c#

I'm building a small GUI-Test automation tool in C# for a application. One of the functions in the test tool is to close dialogs pops up from the tested application. The trouble that I have is to find the button to click on without giving the full class name. I have used the FindWindowEx method to get the dialog box and the button that ...

How can I get captureScreenWithName in UIAutomation working in iPhone Simulator?

Hi, I am new to iPhone Automation, and also UIAutomation introduced by iOS4. Recently I am using UIAutomation to automate testing app on iPhone Simulator, everything goes well, until I need to take screenshots using captureScreenWithName provided by UIAutomation API. But it did not work for me, I Googled, and found that it seems this met...

Does UIAutomation framework works on the simulator?

Hi, I am new to iPhone Automation, and UIAutomation framework introduced by iOS4. Recently I am using UIAutomation to automate testing app on iPhone Simulator via instruments but it gives me an error like "Unexpected error in -[UIATarget_0x5a20d20 frontMostApp], /SourceCache/UIAutomation_Sim/UIAutomation-37/Framework/UIATargetElements.m ...

Problem with System.Windows.Automation Namespace

I am implementing WPF Application and i want to use System.Windows.Automation Namespace to capture highlgihted text from applications. The Problem is that Visual Studio and Expression don't identfy AutomationElement, TreeScope, TextPattern and Red underlined it !! i am using Visual Studio 2010 Professional and Expression 4 on Windows 7....

Unexpected Error in Instruments using UIAutomation

Hi there, I am currently using IOS SDK 4.0.2 and learning how to do UIAutomation. Unfortunately I found that in the Simulator, when I try running a simple Java script test (that just assigns variables) I get the following error. Unexpected error in -[UIATarget_0x5d04f60 frontMostApp], /SourceCache/UIAutomation_Sim/UIAutomation-37/Frame...

Strategy for Automated UI testing on remote virtual machines

I'm using TeamCity for my CI builds, and I'd like to set up a second build for running automated UI tests on Windows XP and Windows 7 virtual machines. I imagine the build working as follows: Compile, run unit tests, etc. Prepare MSI using WiX Copy MSI to target test machines Remotely execute MSI's Copy test harness code to remote m...

Is there any Puppet Master Service to application Using UI Automation Framework in .Net?

I know white but it is a library, what i am looking for is a kind of application or service (windows service), It would be great if it is extensible and open source. ...

What type of encoding is used for the HtmlEdit.Password property?

This is for a coded UI test in Visual Studio 2010. The MSDN documentation for the HtmlEdit.Password property says the following: "Gets the encoded content of this edit control." It unfortunately doesn't say HOW the password is encoded. I'd like to run some data driven UI tests, but it appears that all of the passwords would need to be...

UI automation tool for Java Swing application with Record and Playback and screen capture facilities

Can someone suggest a UI automation tool for a Java Swing application with Record and Playback and screen capture facilities ...

How can I define a ControlTemplate for my TabControl without breaking automated testing?

Summary In my WPF application, I needed a TabControl with buttons on the left, so I defined a ControlTemplate with the layout I wanted and it worked fine. However, my tester's automated testing tool can't see any of the content of the tabs, including the currently selected tab. Question: How can I keep my TabControl testable by the au...