Wait for selector before submitting form.