People can become infected with human papillomavirus (HPV) through oral, vaginal or anal sex, through skin-to-skin, genital-to-genital, and genital-to-mouth contact with an infected person. Although HPV is typically acquired during anal and vaginal intercourse with an infected partner, penetration is not necessary. People can also become infected when they are just "fooling around."
You probably won't know you have HPV without testing. And even then, tests are not able to detect all HPV types. If you are looking for symptoms, there are few to none. Some lesions are flat and practically invisible, and you can unknowingly come in contact with infected cells on a partner who might not be aware they are infected. If lesions do show up, they will appear a few weeks after contact. You might be able to see genital warts if they sit on the surface of the skin (can look like cauliflower). But you might not be able to see anything because infections can be hidden deep in the throat, inside the vagina, on the surface of the cervix, or inside the anus.
HPV-specific tests, while not typically performed during a routine gynecological exam as a screening tool, can detect some HPV types but not all. The HPV test takes a sample of cervical cells and sends it to a lab for analysis. It is usually performed in conjunction with a Pap test but you may need to ask for the HPV test specifically.
The Pap test can detect abnormal changes on the cervix, which can be caused by HPV, but it can also detect changes caused by other infections and noninfectious factors. The Pap test can detect precancerous and cancerous cells that are most likely caused by one or more of the high-risk HPV types. This test is a major victory for decreasing the rates of cervical cancer because it catches cellular changes in an early, more curable stage. But the Pap test can only saves lives when people actually take the test and take it with some regularity.
Men who have suspicious warts can do a home test that involves wrapping the penis for 2 minutes with a vinegar-soaked rag to see if any areas turn white. Since this isn't an official or perfect test, all lesions should be checked by a healthcare professional.