예제 #1
0
 public void GivenIAmOnTheLandingPage(string profile, string environment)
 {
     ScenarioContext.Current["Browser"] = environment;
     webDriver = _bsDriver.Init(profile, environment);
     webDriver.Navigate().GoToUrl(Configurator.GetConfiguratorInstance().GetBaseUrl());
     PageInteractionHelper.SetDriver(webDriver);
 }
예제 #2
0
        public void GivenUserAtBrowserHomePage(string profile, string environment)
        {
            _driver = _bsDriver.Init(profile, environment);
            BasePage page = new BasePage(_driver);

            page.InitTest(profile, environment);
        }
예제 #3
0
        public void BSNavigateToFindACourseHomePage(string profile, string environment)
        {
            _bsDriver   = (BrowserStackDriver)ScenarioContext.Current["bsDriver"];
            _driver     = _bsDriver.Init(profile, environment);
            _driver.Url = Configurator.GetConfiguratorInstance().GetBaseUrl();
            webDriver   = _driver;

            PageInteractionHelper.SetDriver(webDriver);
        }
        public void GivenUserAtBrowserHomePage(string profile, string environment)
        {
            _driver = _bsDriver.Init(profile, environment);
            BasePage page = new BasePage(_driver);

            page.InitTest(profile, environment);
            //driver = new ChromeDriver();
            //driver.Manage().Window.Maximize();
            //driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);
        }
 public void GivenIAmOnTheLandingPage(string profile, string environment)
 {
     webDriver = _bsDriver.Init(profile, environment);
     webDriver.Navigate().GoToUrl(Configurator.GetConfiguratorInstance().GetBaseUrlVenues());
     PageInteractionHelper.SetDriver(webDriver);
 }
예제 #6
0
 public void GivenIAmOnTheGooglePage(string profile, string environment)
 {
     _driver = _bsDriver.Init(profile, environment);
     _driver.Navigate().GoToUrl("https://www.next.co.uk/");
     //_driver.Navigate().GoToUrl("https://dfc-sit-findacourse-web.azurewebsites.net/");
 }
예제 #7
0
 public void GivenIAmOnTheGooglePage(string profile, string environment)
 {
     _driver = _bsDriver.Init(profile, environment);
     _driver.Navigate().GoToUrl("https://www.google.com/ncr");
 }