예제 #1
0
        public void InitTest()
        {
            chrome   = new ChromeDriver(@"C:\Users\mcsymiv\Desktop\git\chromedriver_win32");
            wait     = new WebDriverWait(chrome, TimeSpan.FromSeconds(10));
            menuPage = new LeftMenuPage(chrome);
            config   = new ConfigTestFlow(chrome);

            chrome.Navigate().GoToUrl("https://dev.graintrade.com.ua");
            config.Refresh();
            chrome.Manage().Window.Maximize();
            chrome.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(20);
        }
예제 #2
0
        public void OpenGrainTradePage()
        {
            chrome            = new ChromeDriver(@"C:\Users\mcsymiv\Desktop\git\chromedriver_win32");
            wait              = new WebDriverWait(chrome, TimeSpan.FromSeconds(10));
            headerNotAuthPage = new HeaderUserNotAuth(chrome);
            headerIsAuthPage  = new HeaderUserIsAuth(chrome);
            authPage          = new AuthPage(chrome);
            config            = new ConfigTestFlow(chrome);

            chrome.Navigate().GoToUrl("https://dev.graintrade.com.ua");
            config.Refresh();
            chrome.Manage().Window.Maximize();
            chrome.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30);
        }
예제 #3
0
 public void OpenGrainTradePage()
 {
     chrome            = new ChromeDriver(@"C:\Users\User\Desktop\GrainTrade\graine_trade autoTests\GrainTrade"); //@"C:\Users\mcsymiv\Desktop\git\chromedriver_win32
     headerNotAuthPage = new HeaderUserNotAuth(chrome);
     config            = new ConfigTestFlow(chrome);
     reg1     = new RegistrationFirstStepPage(chrome);
     reg2     = new RegistrationSecondStepPage(chrome);
     reg3     = new RegistrationThirdStepPage(chrome);
     authPage = new AuthPage(chrome);
     chrome.Navigate().GoToUrl("https://dev.graintrade.com.ua");
     config.Refresh();
     chrome.Manage().Window.Maximize();
     chrome.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5);
     headerNotAuthPage.ClickAuthButton();
     authPage.ClickOnRegister();
 }