Email Dealer BEFORE Driving?

I just watched a video by Ray, and he said to email/communicate with the dealer BEFORE I go in so I can get some kind of agreement on an OTD price on the car I’m looking for. My question is, if I’m in the process of researching the car I’m wanting, then how can I be trying to find an OTD price if I haven’t even test-driven the car I’m thinking about? I’m mean, I need and want to test drive a car (maybe a couple) before I narrow down the one I want, right? How am I to do that if I’m supposed to email the dealer about an OTD price first? Currently, my research has brought me down to two cars (different brands). I’m ready to go test drive and narrow the search down to one. Seems weird to have to email and get an OTD at this point. Thoughts? Thx!