public void InitializePageMethods() { _iHomePageObjects = new HomePageObjects(_driver); _iBasePageObjects = new BasePageObjects(); _iBasePageObjects.Driver = _driver; _iBasePageObjects.PageTitle = "Lowe's Canada: Home Improvement, Appliances, Tools, Bathroom, Kitchen"; _iBasePageObjects.PageUrl = "https://www.lowes.ca"; _iBasePageObjects.Wait = new WebDriverWait(_driver, TimeSpan.FromMinutes(2)); Homepage = new HomePageMethodsPhil(_iHomePageObjects, _iBasePageObjects); _iTopNavigationPageObjects = new TopNavigationPageObjects(_driver); TopNavigationPage = new TopNavigationPageMethods(_iTopNavigationPageObjects, _iBasePageObjects); _iSearchPageObjects = new SearchPageObjects(_driver); SearchPage = new SearchPageMethods(_iSearchPageObjects, _iBasePageObjects); }
public SearchPageMethods(ISearchPageObjects iSearchPageObjects, IBasePageObjects iBasePageObjects) : base(iBasePageObjects) { _ISearchPageObjects = iSearchPageObjects; _IBasePageObjects = iBasePageObjects; }