public WebpageReaderTests() { ContentExtractionStrategyFactory contentExtractionStrategyFactory = new ContentExtractionStrategyFactory(); INodeContentExtractionStrategy extractContentAttribute = contentExtractionStrategyFactory.ExtractAttributeByName("content"); INodeContentExtractionStrategy extractInnerText = contentExtractionStrategyFactory.ExtractInnerText(); _webpageTitleSearch = PageSearch.NewBuilder() .AddSearchCriteria("/html/head/meta[@property='og:title']", extractContentAttribute) .AddSearchCriteria("/html/head/meta[@name='twitter:title']", extractContentAttribute) .AddSearchCriteria("/html/head/title", extractInnerText) .SetDefault("Untitled") .Build(); }