test/Misc/EFTools/E2ETests/WhiteE2ETests.cs
/// <summary>
///     Tries to find the wizard after it is launched.
/// </summary>
/// <returns>the wizard element</returns>
Tries to find the wizard after it is launched.
Tries to find the wizard after it is launched .
private Window GetWizard(string wizardName)
        {
            Trace.WriteLine(DateTime.Now.ToLongTimeString() + ":In GetWizard");
            _visualStudio = Application.Attach(Process.GetCurrentProcess().Id);
            _visualStudioMainWindow = _visualStudio.GetWindow(
                SearchCriteria.ByAutomationId("VisualStudioMainWindow"),
                InitializeOption.NoCache);
            var wizard = _visualStudio.Find(
                x => x.Equals(_resourceHelper.GetEntityDesignResourceString(wizardName)),
                InitializeOption.NoCache);
            return wizard;
        }
private Window GetWizard ( string wizardName ) { Trace . WriteLine ( DateTime . Now . ToLongTimeString ( ) + " " ) ; _visualStudio = Application . Attach ( Process . GetCurrentProcess ( ) . Id ) ; _visualStudioMainWindow = _visualStudio . GetWindow ( SearchCriteria . ByAutomationId ( " " ) , InitializeOption . NoCache ) ; var wizard = _visualStudio . Find ( x => x . Equals ( _resourceHelper . GetEntityDesignResourceString ( wizardName ) ) , InitializeOption . NoCache ) ; return wizard ; }
Tries to find the wizard after it is launched.
Tries to find the wizard after it is launched .
the wizard element
the wizard element
wizardName
string