Here is sample test:
By watching its execution you'll notice that Google autosuggest is not visible during TypeText execution.
When typing manually autosuggest appears immediately.
Why TypeText works differently? How to force opening autosuggest?
[Test]
public
void
GoogleTest()
{
ActiveBrowser.NavigateTo(
"http://www.google.com"
);
ActiveBrowser.WaitUntilReady();
HtmlInputText queryBox = Find.ByName<HtmlInputText>(
"q"
);
Desktop.Mouse.Click(MouseClickType.LeftClick, queryBox.GetRectangle());
Desktop.KeyBoard.TypeText(
"sample"
, 1000);
Actions.Click(Find.ById(
"btnG"
));
}
By watching its execution you'll notice that Google autosuggest is not visible during TypeText execution.
When typing manually autosuggest appears immediately.
Why TypeText works differently? How to force opening autosuggest?