Are HPV and Herpes the same thing?

Also, is HPV/herpes contracted from first hand contact or can I get it from second hand contact? My cousin has HPV and I’m living in her apartment with her for a week, obviously haven’t made first hand contact with her genitalia but we’ve used the same toilet etc and before she told me she has HPV, I wasn’t very careful about what I touched. I’m wondering if HPV and Herpes are the same thing because I want to get tested when I come home but I wanna know what to test for. Thanks in advance!