Ovulation test

So how does an ovulation test work exactly? When should I take it?

I didn't really understand the instructions on the box.

Thanks!