示例#1
0
        public void GlobalSetUp()
        {
            AtataContext.GlobalConfiguration.ApplyJsonConfig();

            DriverSetup.GetDefaultConfiguration(BrowserNames.InternetExplorer)
            .WithX32Architecture();

            AtataContext.GlobalConfiguration.AutoSetUpConfiguredDrivers();
        }
示例#2
0
        public void GlobalSetUp()
        {
            string driverAlias = TestContext.Parameters.Get("DriverAlias", DriverAliases.Chrome);

            AtataContext.GlobalConfiguration
            .ApplyJsonConfig()
            .UseDriver(driverAlias);

            DriverSetup.GetDefaultConfiguration(BrowserNames.InternetExplorer)
            .WithX32Architecture();

            AtataContext.GlobalConfiguration.AutoSetUpDriverToUse();
        }
示例#3
0
        public void GlobalSetUp()
        {
            AtataContext.GlobalConfiguration
            .UseChrome()
            .WithArguments("start-maximized")
            .UseEdge()

            // TODO: You can also specify remote driver configuration(s):
            // .UseRemoteDriver()
            // .WithAlias("chrome_remote")
            // .WithRemoteAddress("http://127.0.0.1:4444/wd/hub")
            // .WithOptions(new ChromeOptions())
            .UseBaseUrl("https://demo.atata.io/")
            .UseCulture("en-US")
            .UseAllNUnitFeatures();

            DriverSetup.GetDefaultConfiguration(BrowserNames.InternetExplorer)
            .WithX32Architecture();

            AtataContext.GlobalConfiguration.AutoSetUpConfiguredDrivers();
        }
示例#4
0
        public void GlobalSetUp()
        {
            AtataContext.GlobalConfiguration
            .UseChrome()
            .WithArguments("start-maximized")
            .UseInternetExplorer()
            // TODO: Specify Internet Explorer settings, like:
            // WithOptions(x => x.EnableNativeEvents = true).
            //.UseFirefox().
            //    WithFixOfCommandExecutionDelay()
            // TODO: You can also specify remote driver configuration(s):
            // UseRemoteDriver().
            // WithAlias("chrome_remote").
            // WithRemoteAddress("http://127.0.0.1:4444/wd/hub").
            // WithOptions(new ChromeOptions()).
            .UseBaseUrl("https://demo.atata.io/")
            .UseCulture("en-US")
            .UseAllNUnitFeatures();

            DriverSetup.GetDefaultConfiguration(BrowserNames.InternetExplorer)
            .WithX32Architecture();

            AtataContext.GlobalConfiguration.AutoSetUpConfiguredDrivers();
        }