private static void InitPage(IWebPage page) { if (page.GetType().HasUrlAttribute()) { page.Address = SelenetConfig.Instance.Application.BaseUrl + page.GetType().GetUrlAttribute().Url; } ElementFactory.InitProperties(page); }
private static void InitPage(IWebPage page) { if (page.GetType().HasUrlAttribute()) { page.Address = BaseUrl + page.GetType().GetUrlAttribute().Url; } WebElementFactory.InitProperties(page); }
private static void InitPage(IWebPage page) { if (page.GetType().HasUrlAttribute()) { page.Url = page.GetType().GetUrlAttribute().Url; page.Address = TestsBootstrap.Instance.ServiceProvider.GetService <SerenitySection>().BaseUrl + page.Url; } if (page.GetType().HasTitleAttribute()) { page.Address = page.GetType().GetTitleAttribute().Title; } ElementFactory.InitProperties(page); }