public Browser( IFinderFactory finderFactory, IWebElementAdapter webElementAdapter, IWebElementFetcher webElementFetcher) { _finderFactory = finderFactory; _webElementAdapter = webElementAdapter; _webElementFetcher = webElementFetcher; _loaderSources = new List <TaskCompletionSource <Uri> >(); _uriHistory = new List <Uri>(); }
internal VerifyThatTheTextHasTheCorrectFormatting(IWebElementAdapter container, string expectedText, string expectedTagName) { if (expectedTagName == null) { throw new ArgumentNullException(nameof(expectedTagName)); } if (expectedText == null) { throw new ArgumentNullException(nameof(expectedText)); } if (container == null) { throw new ArgumentNullException(nameof(container)); } this.expectedTagName = expectedTagName; this.expectedText = expectedText; this.container = container; }
int GetCountOfClosedTickets(IPerformer actor, IWebElementAdapter labelElement) { var theCount = actor.Perform(Elements.In(labelElement).ThatAre(LabelList.ClosedTicketCount).Called("the count of closed tickets")); return(actor.Perform(TheText.From(theCount).As <int>())); }
protected FinderBase(IWebElementAdapter adapter) { _adapter = adapter; }
public FinderById(IWebElementAdapter adapter, string id) : base(adapter) { _id = id; }
public VerifyThat Inside(IWebElementAdapter container) { this.container = container; return(this); }