I have a test case that requires typing in a partial value into an ajax based textfield and verifying the list has the expected content. If it does, select the content. An
I'd do this as follows:
type
to enter the value in the text field.waitForTextPresent
or verifyTextPresent
to check the autocomplete contentclick
or mouseDown
to click on the item in the autocomplete listThe trick is going to be making the final click
be just in the right place. You should be able to use an XPath expression that searches for the text you're expecting to find it.