Add visit and body methods to the browser class