WebPagetest Forums

Full Version: how to script the typeahead field ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I am trying to automate a workflow for getting the performance metrics and currently blocked on the typeahead fields where i can enter the text, but the values dont appear.

Something similar to the one attached. Any help would be highly appreciated.

I tried something like this, but it not work as expected;

document.getElementById(<id>).value="bank";$(<id>).set("text\n");


Thanks !
I've done something similar before and will dig out my notes - I sent keystrokes to an autocomplete field

Is the page you're trying to test publicly accessible?
Thanks Andy that would be really helpful if you can provide some insights. Currently it is not publicly accessible.
Slide 37/38/39 of this deck should give you some ideas - https://docs.google.com/presentation/d/1...sp=sharing

It uses jQuery which was already on the page but native JS could be used instead
Reference URL's