Пример #1
0
 public void SetUp()
 {
     driver = new FakeDriver();
     spyRobustWrapper = new SpyRobustWrapper();
     fakeWaiter = new FakeWaiter();
     stubUrlBuilder = new StubUrlBuilder();
     session = TestSessionBuilder.Build(driver, spyRobustWrapper, fakeWaiter, new SpyRestrictedResourceDownloader(),
                                        stubUrlBuilder);
 }
Пример #2
0
 public void SetUp()
 {
     driver           = new FakeDriver();
     spyRobustWrapper = new SpyRobustWrapper();
     fakeWaiter       = new FakeWaiter();
     stubUrlBuilder   = new StubUrlBuilder();
     session          = TestSessionBuilder.Build(driver, spyRobustWrapper, fakeWaiter, new SpyRestrictedResourceDownloader(),
                                                 stubUrlBuilder);
 }
Пример #3
0
        public void SetUp()
        {
            driver               = new FakeDriver();
            spyRobustWrapper     = new SpyRobustWrapper();
            fakeWaiter           = new FakeWaiter();
            stubUrlBuilder       = new StubUrlBuilder();
            sessionConfiguration = new SessionConfiguration();
            browserSession       = TestSessionBuilder.Build(sessionConfiguration, driver, spyRobustWrapper, fakeWaiter, new SpyRestrictedResourceDownloader(),
                                                            stubUrlBuilder);

            elementScope = browserSession.FindXPath(".");
        }
Пример #4
0
        public void SetUp()
        {
            driver               = new FakeDriver();
            SpyTimingStrategy    = new SpyTimingStrategy();
            fakeWaiter           = new FakeWaiter();
            stubUrlBuilder       = new StubUrlBuilder();
            sessionConfiguration = new SessionConfiguration();
            browserSession       = TestSessionBuilder.Build(sessionConfiguration, driver, SpyTimingStrategy, fakeWaiter, new SpyRestrictedResourceDownloader(),
                                                            stubUrlBuilder);

            elementScope = browserSession.FindXPath(".");
            popupScope   = browserSession.FindWindow("popup");
        }