Esempio n. 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>());
 }
Esempio n. 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));
 }
Esempio n. 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 }));
 }
Esempio n. 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));
 }
Esempio n. 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>());
 }