Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Telerik
Build modern .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
AI for Developers & IT
Ensure AI program success
AI Coding
AI Engineering
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
Debugging
AI-Enhanced UI Tools
CMS
Free Tools
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();