Advertisement
Guest User

C# to Java

a guest
Oct 8th, 2018
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. public static class Pages
  2. {
  3. private static T GetPage<T>() where T : new()
  4. {
  5. var page = new T();
  6. PageFactory.InitElements(Browser.Driver, page);
  7. return page;
  8. }
  9.  
  10. public static AboutPage About
  11. {
  12. get { return GetPage<AboutPage>(); }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement