Q:

Selenium Testing Keypress to test a type ahead result

I want to test that if the suggestion box shows when the user types in the textbox. How can I make selenium type the text in the box instead of pasting it which does not trigger the suggestion box to show up.

A:

You have to use sendKeys method. Read more here about it.

