public void NoSuchElementExceptionByValueTest() { var dropdownPage = new InternetPage(this.DriverContext) .OpenHomePage() .GoToDropdownPage(); Assert.That(() => dropdownPage.SelectByValue("qwerty"), Throws.Nothing); }