Esempio n. 1
0
 public void Login(string username, string password)
 {
     _driver.Click(ButtonShowFormLogin);
     _driver.SendKeys(LoginInput, username);
     _driver.SendKeys(PasswordInput, password);
     _driver.Click(SubmitLoginButton);
 }
Esempio n. 2
0
        public void SelectCPU(CpuType cpuType)
        {
            _driver.WaitForElementIsVisible(Filter);
            var proc = _driver.GetElement(ShowOtherCPU);

            _driver.Scroll((proc.Location.Y).ToString());
            if (!_driver.CheckClassForElement(FilterPopoverVisible, "schema-filter-popover_visible"))
            {
                _driver.Click(ShowOtherCPU);
            }
            _driver.WaitForElementIsVisible(FilterPopoverVisible);
            _driver.Click(CreateOrderLocator(cpuType));
            WaitComplitePrice();
        }
 public void ClickProductType(ProductType productType)
 {
     if (GetProductTypeCheckout() != productType)
     {
         _driver.Click(CreateProductTypeLocator(productType));
     }
 }
Esempio n. 4
0
 public void InputNewTask(string text)
 {
     _driver.SendKeys(InputTask, text);
     _driver.Click(ButtonAddTask);
 }
Esempio n. 5
0
 public static void OpenHotSection()
 {
     WebDriver.Click(Controls.HotLink);
 }
Esempio n. 6
0
 public static void OpenFreshSection()
 {
     WebDriver.Click(Controls.FreshLink);
 }
Esempio n. 7
0
 public static void OpenTrendingSection()
 {
     WebDriver.Click(Controls.TrendingLink);
 }