@world.absorb
def wait_for_visible(css_selector, index=0, timeout=GLOBAL_WAIT_FOR_TIMEOUT):
 wait_for(func=(lambda _: css_visible(css_selector, index)), timeout=timeout, timeout_msg='Timed out waiting for {} to be visible.'.format(css_selector))

@ world . absorb def wait_for_visible ( css_selector , index = 0 , timeout = GLOBAL_WAIT_FOR_TIMEOUT ) : wait_for ( func = ( lambda _ : css_visible ( css_selector , index ) ) , timeout = timeout , timeout_msg = 'Timed out waiting for {} to be visible.' . format ( css_selector ) )
wait for the element to be visible in the dom .