public void test1_Autocompleate() { string expResult = "Two"; string input = "Tw"; IWebDriver driver = new ChromeDriver(); ComponentsPage page = new ComponentsPage(driver); page.goToPage(); System.Threading.Thread.Sleep(1000); Autocompleate autocompleate = page.GoToAutocompleate(); System.Threading.Thread.Sleep(1000); autocompleate.EnterText(input); System.Threading.Thread.Sleep(1000); autocompleate.ClickSuggestion(); System.Threading.Thread.Sleep(1000); Assert.That(expResult == autocompleate.GetResult()); }