def _click_edit(page_object, button_css, view_css, bounded_selector=(lambda x: x)):
 page_object.q(css=bounded_selector(button_css)).first.click()
 EmptyPromise((lambda : page_object.q(css=view_css).present), 'Wait for the Studio editor to be present').fulfill()
 return page_object

def _click_edit ( page_object , button_css , view_css , bounded_selector = ( lambda x : x ) ) : page_object . q ( css = bounded_selector ( button_css ) ) . first . click ( ) EmptyPromise ( ( lambda : page_object . q ( css = view_css ) . present ) , 'Wait for the Studio editor to be present' ) . fulfill ( ) return page_object
click on the first editing button found and wait for the studio editor to be present .