/// <summary> /// Configures NetSel element builder. /// </summary> /// <param name="configuration">Instance of PageFactoryConfiguration.</param> /// <returns>Page factory configuration.</returns> public static PageFactoryConfiguration ConfigureNetSelElementsBuilder(this PageFactoryConfiguration configuration) { var elementsBuilder = new ElementsBuilder(); elementsBuilder.RegisterNetSelTypes(); configuration.ElementsBuilder = elementsBuilder; return(configuration); }
public void VerifyKnownElementIsBuiltTest() { _elementsBuilder.RegisterNetSelTypes(); Assert.Null(Record.Exception(() => _elementsBuilder.BuildElement(typeof(ClickableElement), new NetSelElementProxy(Mock.Of <IWebDriver>(), Mock.Of <By>())))); }