FAQ: Why am I getting a NullReferencecException when calling a method on a UITestControl?

Most probably, this is because you have not initialized Playback.   In this post, Gautam has described how to use UI Testing methods without creating a Coded UI Test. It is important to note that,  If Playback.Initialize() is not called before invoking any UI Testing method, an exception will be thrown. e.g:- If you attempt…

1

FAQ: Window Search and its implications

In this blog, Siddhartha has described Window search and Windowed properties. There a few implications of using Window Search. Window Search is applicable only if give Technology Name = MSAA If we specify multiple search properties (both windowed and non-windowed), all of them will be honored. i.e the control should match all specified search properties….


FAQ: Why can’t I click on the hyperlink which contains an image?

I have the following construct in my html page. <a href="http://bing.com"><img src="bing.jpg"/></a>   I am unable click on this hyperlink. Why?   In this case, the hyperlink does not have a clickable point. The image completely covers the hyperlink. You can click on the image though. In most applications, we find that click on the…

6

FAQ: Why am I not seeing the new extension package that I added for supporting a new technology?

In this blog, Gautam has talked about how to create an extension package and deploy it. Excerpt from the above blog: “Build & Deploy the extension Build and deploy the binaries to "%CommonProgramFiles%\Microsoft Shared\VSTT\10.0\UITestExtensionPackages" directory. To deploy, you use following commands – md "%CommonProgramFiles%\Microsoft Shared\VSTT\10.0\UITestExtensionPackages" xcopy /y "%~dp0\bin\Debug\UITestHelloWorldPackage.*" "%CommonProgramFiles%\Microsoft Shared\VSTT\10.0\UITestExtensionPackages\*.*" Note – The above assumes…

2

FAQ: What happens if I search for a UI Test Control with an invalid property?

In this blog, Bala has described how Coded UI Test searches for controls. A frequently asked follow-up question is “What if i give an invalid search property?”   For Web technology, If an invalid SearchProperty is used to Find a UITestControl, it will throw UITestControlNotFoundException.  e.g:- If you searched for the search edit box in…