コード例 #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()
        {
            stubUrlBuilder = new StubUrlBuilder();
            _stubRestrictedResourceDownloader = new SpyRestrictedResourceDownloader();

            driver = new FakeDriver();
            configuration = new Configuration();
            browserSession = TestSessionBuilder.Build(configuration, driver, new SpyRobustWrapper(), new FakeWaiter(), _stubRestrictedResourceDownloader, stubUrlBuilder);
        }
コード例 #4
0
        public void SetUp()
        {
            stubUrlBuilder = new StubUrlBuilder();
            _stubRestrictedResourceDownloader = new SpyRestrictedResourceDownloader();

            driver = new FakeDriver();
            SessionConfiguration = new SessionConfiguration();
            browserSession = TestSessionBuilder.Build(SessionConfiguration, driver, new SpyTimingStrategy(), new FakeWaiter(), _stubRestrictedResourceDownloader, stubUrlBuilder);
        }
コード例 #5
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(".");
        }
コード例 #6
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");
        }
コード例 #7
0
 private static void StubResourceUrl(string virtualPath, string fullyQualifiedPath, StubUrlBuilder stubUrlBuilder)
 {
     stubUrlBuilder.SetStubUrl(virtualPath, fullyQualifiedPath);
 }