Beispiel #1
0
 /// <summary>
 /// Gets the instance of T, which is an Object repository class (page definition).
 /// </summary>
 /// <typeparam name="T">Object repository class</typeparam>
 /// <returns>instance of T</returns>
 public static T GetBrowserWindow <T>()
 {
     return(ObjectRepositoryManager.GetInstance <T>());
 }
Beispiel #2
0
 /// <summary>
 /// Gets the instance of T, which is an Object repository class (page definition).
 /// </summary>
 /// <typeparam name="T">Object repository class</typeparam>
 /// <returns>instance of T</returns>
 public static T GetBrowserWindow <T>(string title = null) where T : BrowserWindowUnderTest
 {
     return(ObjectRepositoryManager.GetInstance <T>(title));
 }
 /// <summary>
 /// Gets the instance of T, which is an Object repository class (page definition).
 /// </summary>
 /// <typeparam name="T">Object repository class</typeparam>
 /// <returns>instance of T</returns>
 public static T GetPage <T>(string title)
 {
     return((T)(object)ObjectRepositoryManager.GetInstance <T>(new object[] { title }));
 }
Beispiel #4
0
 /// <summary>
 /// Gets the instance of T, which is an Object repository class (page definition).
 /// </summary>
 /// <typeparam name="T">Object repository class</typeparam>
 /// <returns>instance of T</returns>
 public static T GetBrowserWindow <T>(string title)
 {
     return(ObjectRepositoryManager.GetInstance <T>(title));
 }
 /// <summary>
 /// Gets the instance of T, which is an Object repository class (page definition).
 /// </summary>
 /// <typeparam name="T">Object repository class</typeparam>
 /// <returns>instance of T</returns>
 public static T GetPage <T>()
 {
     return((T)(object)ObjectRepositoryManager.GetInstance <T>());
 }