CST Autocomplete Searches, Dynamic Dropdowns and As-You-Type Filters

Updated 5 days ago by Copado Solutions

Javascript autocomplete/search-as-you-type text fields is sometimes tricky, due to a lack of standards. The type command "writes" the whole text at once, not typing each key as a human would, and unpredictable delays between the typing and the results "showing up" are challenging as well.

To help overcome this, the typeKeys command is handy. It is like the type command, but it actually simulates typing each character of the value and waiting a few moments in between. Also, a judicious wait of a few seconds (pause 2000) right after typeKeys would help with a slower search before clicking on an item (we do retry several times in case a locator is not found, with copadoSetRetries, but sometimes that is not enough).


parameter 1

parameter 2




San Fran






copado=link:San Francisco


How did we do?