Exemple #1
0
 public Browser(
     IFinderFactory finderFactory,
     IWebElementAdapter webElementAdapter,
     IWebElementFetcher webElementFetcher)
 {
     _finderFactory     = finderFactory;
     _webElementAdapter = webElementAdapter;
     _webElementFetcher = webElementFetcher;
     _loaderSources     = new List <TaskCompletionSource <Uri> >();
     _uriHistory        = new List <Uri>();
 }
Exemple #2
0
        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;
        }
Exemple #3
0
        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;
 }
Exemple #6
0
 public VerifyThat Inside(IWebElementAdapter container)
 {
     this.container = container;
     return(this);
 }