@@ -38,10 +38,9 @@ private Application(Process process)
3838 /// <summary>
3939 /// Runs the process identified by the executable and creates Application object for this executable
4040 /// </summary>
41- /// <param name="executable">location of the executable</param>
42- /// <returns></returns>
43- /// <exception cref="ArgumentNullException"></exception>
44- /// <exception cref="WhiteException">when some error occured</exception>
41+ /// <param name="executable">Path to the executable</param>
42+ /// <exception cref="ArgumentNullException">No process info passed</exception>
43+ /// <exception cref="WhiteException">White Failed to Launch or Attached to process</exception>
4544 public static Application Launch ( string executable )
4645 {
4746 var processStartInfo = new ProcessStartInfo ( executable ) ;
@@ -51,10 +50,8 @@ public static Application Launch(string executable)
5150 /// <summary>
5251 /// Lauches the process and creates and Application object for it
5352 /// </summary>
54- /// <param name="processStartInfo"></param>
55- /// <returns></returns>
56- /// <exception cref="ArgumentNullException"></exception>
57- /// <exception cref="WhiteException">when some error occured</exception>
53+ /// <exception cref="ArgumentNullException">No process info passed</exception>
54+ /// <exception cref="WhiteException">White Failed to Launch or Attached to process</exception>
5855 public static Application Launch ( ProcessStartInfo processStartInfo )
5956 {
6057 if ( string . IsNullOrEmpty ( processStartInfo . WorkingDirectory ) ) processStartInfo . WorkingDirectory = "." ;
@@ -93,30 +90,27 @@ public static Application Launch(ProcessStartInfo processStartInfo)
9390 }
9491
9592 /// <summary>
96- /// Creates an Application object for existing process
93+ /// Attaches White to an existing process by process id
9794 /// </summary>
98- /// <param name="processId"></param>
99- /// <returns></returns>
100- /// <exception cref="WhiteException">when process not found</exception>
95+ /// <exception cref="WhiteException">White Failed to Attach to process</exception>
10196 public static Application Attach ( int processId )
10297 {
103- Process process = null ;
98+ Process process ;
10499 try
105100 {
106101 process = Process . GetProcessById ( processId ) ;
107102 }
108- catch ( System . ArgumentException e )
103+ catch ( ArgumentException e )
109104 {
110105 throw new WhiteException ( "Could not find process with id: " + processId , e ) ;
111106 }
112107 return new Application ( process ) ;
113108 }
114109
115110 /// <summary>
116- /// Attaches with existing process
111+ /// Attaches White to an existing process
117112 /// </summary>
118- /// <param name="process"></param>
119- /// <returns></returns>
113+ /// <exception cref="WhiteException">White Failed to Attach to process</exception>
120114 public static Application Attach ( Process process )
121115 {
122116 return new Application ( process ) ;
@@ -125,9 +119,7 @@ public static Application Attach(Process process)
125119 /// <summary>
126120 /// Attaches with existing process
127121 /// </summary>
128- /// <param name="executable"></param>
129- /// <returns></returns>
130- /// <exception cref="WhiteException">when process is not found</exception>
122+ /// <exception cref="WhiteException">White Failed to Attach to process with specified name</exception>
131123 public static Application Attach ( string executable )
132124 {
133125 Process [ ] processes = Process . GetProcessesByName ( executable ) ;
@@ -142,7 +134,7 @@ public static Application Attach(string executable)
142134 /// <returns></returns>
143135 /// <exception cref="ArgumentException"></exception>
144136 /// <exception cref="ArgumentNullException"></exception>
145- /// <exception cref="WhiteException">when some error occured </exception>
137+ /// <exception cref="WhiteException">White Failed to Launch or Attach to process </exception>
146138 public static Application AttachOrLaunch ( ProcessStartInfo processStartInfo )
147139 {
148140 string processName = ReplaceLast ( processStartInfo . FileName , ".exe" , string . Empty ) ;
@@ -181,7 +173,7 @@ public virtual ApplicationSession ApplicationSession
181173 /// <param name="title">Title text of window displayed on desktop</param>
182174 /// <param name="option">Option which would be used to initialize the window.</param>
183175 /// <returns></returns>
184- /// <exception cref="UIItemSearchException">if your framework is not supported</exception>
176+ /// <exception cref="UIItemSearchException">The application type is not supported by White </exception>
185177 public virtual Window GetWindow ( string title , InitializeOption option )
186178 {
187179 WindowSession windowSession = applicationSession . WindowSession ( option ) ;
@@ -193,7 +185,7 @@ public virtual Window GetWindow(string title, InitializeOption option)
193185 /// </summary>
194186 /// <param name="title">Title text of window displayed on desktop</param>
195187 /// <returns></returns>
196- /// <exception cref="UIItemSearchException">if your framework is not supported</exception>
188+ /// <exception cref="UIItemSearchException">The application type is not supported by White </exception>
197189 public virtual Window GetWindow ( string title )
198190 {
199191 return GetWindow ( title , InitializeOption . NoCache ) ;
@@ -205,7 +197,7 @@ public virtual Window GetWindow(string title)
205197 /// <param name="searchCriteria"></param>
206198 /// <param name="initializeOption">found window would be initialized with this option</param>
207199 /// <returns></returns>
208- /// <exception cref="UIItemSearchException">if your framework is not supported</exception>
200+ /// <exception cref="UIItemSearchException">The application type is not supported by White </exception>
209201 public virtual Window GetWindow ( SearchCriteria searchCriteria , InitializeOption initializeOption )
210202 {
211203 WindowSession windowSession = applicationSession . WindowSession ( initializeOption ) ;
@@ -253,7 +245,7 @@ public virtual void Kill()
253245 /// All windows belonging to the application
254246 /// </summary>
255247 /// <returns></returns>
256- /// <exception cref="UIItemSearchException">if your framework is not supported</exception>
248+ /// <exception cref="UIItemSearchException">The application type is not supported by White </exception>
257249 public virtual List < Window > GetWindows ( )
258250 {
259251 return windowFactory . DesktopWindows ( process , new NoApplicationSession ( ) ) ;
@@ -309,7 +301,7 @@ public virtual void WaitWhileBusy()
309301 /// </summary>
310302 /// <param name="match"></param>
311303 /// <param name="initializeOption">option for the window which matches the condition</param>
312- /// <exception cref="UIItemSearchException">if your framework is not supported</exception>
304+ /// <exception cref="UIItemSearchException">The application type is not supported by White </exception>
313305 public virtual Window Find ( Predicate < string > match , InitializeOption initializeOption )
314306 {
315307 WindowSession windowSession = applicationSession . WindowSession ( initializeOption ) ;
0 commit comments