Allow editing documents from view

Closes COUCHDB-2494
I would prefer to name this command `clickWhenVisible` - we can then add `clickWhenPresent` later if needed