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); }
private void SetOperator(string op) { var operatorSelect = new SelectElement(_ngDriver.FindElement(NgBy.Select("operator"))); operatorSelect.SelectByText(op); }