The type command may not be enough to trigger the autocomplete. Dave Webb's suggestions are otherwise spot on.
You might need the typeKeys command, which causes slightly different JavaScript events to be fired, which may be more likely to trigger the autocomplete widget.