A dishwasher and method utilize an image-based position sensor that is positioned to sense the rotational position of a discretely directable tubular spray element driven by a tubular spray element drive.