Avoid using vaginal products, such as douches or spermicidal creams, for at least 24 hours before your appointment. You should also avoid having sex or inserting anything into your vagina for at least 24 hours before the test.