public void Login(string username, string password) { _driver.Click(ButtonShowFormLogin); _driver.SendKeys(LoginInput, username); _driver.SendKeys(PasswordInput, password); _driver.Click(SubmitLoginButton); }
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)); } }
public void InputNewTask(string text) { _driver.SendKeys(InputTask, text); _driver.Click(ButtonAddTask); }
public static void OpenHotSection() { WebDriver.Click(Controls.HotLink); }
public static void OpenFreshSection() { WebDriver.Click(Controls.FreshLink); }
public static void OpenTrendingSection() { WebDriver.Click(Controls.TrendingLink); }