Improve clicking and synchronization in Studio bok-choy tests

@cahrens @minhtuev @benpatterson 
Should this code be in the general wait_for_element_visibility method?