During a Pap smear, the pathologist looks at the cells under a microscope and is able to identify infections, cancer or changes in the cells that could lead to cancer.