user3668395
user3668395

Reputation: 1

coded ui waitforcontrolready not working on VSTT2013 but worked on VSTT2010

I meet the following issues after migration from VSTT2010 to 2013: all my ....WaitForControlReady(3000); throw exception object reference not defined to object reference

e.g: UIMap.UIIdentificationWindowWindow.UIIdentificationDocument4.WaitForControlReady(3000); Is waiting for a popup to be displayed

MonNavigateur.WaitForControlReady(); with: public static BrowserWindow MonNavigateur; declared in the class and: MonNavigateur = BrowserWindow.Launch(new Uri(sAppConfigExtranetUri)); in MyTestInitialize() method

I worked like a charm in VSTT2010 ;(

The temporary workaround used is to replace all my WaitForControlReady(); with a not satisfying Playback.Wait(x000);

Anyone has an idea to solve this problem please?

Upvotes: 0

Views: 430

Answers (1)

Ryan Cox
Ryan Cox

Reputation: 958

Make sure you upgrade your reference assemblies to the latest version. WaitForControlReady() should be a part of the Microsoft.VisualStudio.TestTools.UITesting assembly. Version 12.0 would be required to run in VS2013.

Upvotes: 2

Related Questions