Пример #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>());
 }
Пример #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));
 }
Пример #3
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 GetPage <T>(string title)
 {
     return((T)(object)ObjectRepositoryManager.GetInstance <T>(new object[] { title }));
 }
Пример #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));
 }
Пример #5
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 GetPage <T>()
 {
     return((T)(object)ObjectRepositoryManager.GetInstance <T>());
 }