I am automating an application which has auto suggest text box. I am facing an issue that sometimes the auto suggest values are not shown up at all. This happens 50% of the time. Worrying part is this never happens when I try manually.
I am using latest version of Selenium WebDriver in .net C# and executing the tests on Chrome.
Here is how the steps are in the Code
- Create WebDriver instance
- Find the TextBox
- TextBox.Click() on the TextBox
- TextBox.SendKeys(): I am entering value character wise which reduces the failure rate
- WebDriver.wait(wait for dropdown)
- TextBox.SendKeys(Keys.DownArrow)
- TextBox.SendKeys(Keys.Enter)
- TextBox.SendKeys(Keys.Tab)
Any pointers will really be helpful