All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
private
bool
TextBoxHasTextLonger(ArtOfTest.WebAii.Controls.Control control,
object
length)
{
HtmlInputText textBox = (HtmlInputText)control;
return
textBox.Text.Length>(
int
)length;
}
[Test]
public
void
Test1()
Manager.LaunchNewBrowser();
ActiveBrowser.NavigateTo(
"http://www.skyscanner.net"
);
SearchPanel sp= Find.ById<SearchPanel>(
"searchcontrols"
sp.Departure.TypeText(
"rzes"
, 100);
Desktop.KeyBoard.KeyPress(Keys.Tab);
// to leave the box and fire autosuggest completion
sp.Destination.TypeText(
"lond"
// wait 5s for autocomplete to fire; text should be longer than typed 4 characters
sp.Destination.Wait.ForCondition(TextBoxHasTextLonger,
false
, 4, 5000);
sp.SearchButton.Click();