A sample of vaginal fluid may be taken during the pelvic exam. The sample can be examined and tested to diagnose different kinds of infections.