예제 #1
0
 public TutorialStep5Page SortByAge()
 {
     // Alternative: Use OpenQA.Selenium.Support.UI.SelectElement from Selenium.Support package
     ngDriver
     .FindElement(NgBy.Select("orderProp"))
     .FindElement(By.XPath("//option[@value='age']"))
     .Click();
     return(this);
 }
예제 #2
0
        private void SetOperator(string op)
        {
            var operatorSelect = new SelectElement(_ngDriver.FindElement(NgBy.Select("operator")));

            operatorSelect.SelectByText(op);
        }