-
-
Save testautomationtribe/5c6ac6d5f22738877771149ca4c1ef6d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using OpenQA.Selenium; | |
using OpenQA.Selenium.Support.PageObjects; | |
namespace TatAutomationFramework.Web | |
{ | |
public class DoInitialize | |
{ | |
private static IWebDriver _driver; | |
public static T PageElementsIn<T>() where T : new() | |
{ | |
_driver = TestBase.driver; | |
var page = new T(); | |
PageFactory.InitElements(_driver, page); | |
return page; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment