コード例 #1
0
        public void StartApplication()
        {
            string browserType = System.Environment.GetEnvironmentVariable("BROWSER");
            string baseUrl = System.Environment.GetEnvironmentVariable("BASE_URL");
            string hubUrl = System.Environment.GetEnvironmentVariable("HUB_URL");

            if (baseUrl == null)
            {
                baseUrl = "http://localhost/php4dvd/";
            }

            DesiredCapabilities capabilities = new DesiredCapabilities();
            capabilities.SetCapability(CapabilityType.BrowserName,
                browserType != null ? browserType : "firefox");

            app = new ApplicationManager(capabilities, baseUrl, hubUrl);
        }
コード例 #2
0
 public NavigationHelper(ApplicationManager manager)
 {
     this.manager = manager;
 }
コード例 #3
0
 public LoginHelper(ApplicationManager manager)
 {
     this.manager = manager;
     this.pages = manager.Pages;
 }