コード例 #1
0
        public static void SelectFromDropDownWithLabel(string label, string value)
        {
            var arrow = GenericHelper.GetElement(By.XPath(GetXpathUsingLabel(label)));

            JavaScriptExecutorHelper.ScrollElementAndClick(arrow);
            Thread.Sleep(1000);
            var list = GenericHelper.GetVisiblityOfElement(By.XPath(GetListElement(value)));

            list.Click();
            Thread.Sleep(1000);
        }
コード例 #2
0
 public static void ClickButton(By locator)
 {
     _element = GenericHelper.GetElement(locator);
     _element.Click();
 }
コード例 #3
0
 public static void ClearTextBox(By locator)
 {
     _element = GenericHelper.GetElement(locator);
     _element.Clear();
 }
コード例 #4
0
 public static void TypeInTextBox(By locator, string text)
 {
     _element = GenericHelper.GetElement(locator);
     _element.SendKeys(text);
 }
コード例 #5
0
 public static void SelectByIndex(By locator, int index)
 {
     _select = new SelectElement(GenericHelper.GetElement(locator));
     _select.SelectByIndex(index);
 }
コード例 #6
0
 public static void SelectByVisibleText(By locator, string text)
 {
     _select = new SelectElement(GenericHelper.GetElement(locator));
     _select.SelectByText(text);
 }