@world.absorb
def css_fill(css_selector, text, index=0):
 wait_for_visible(css_selector, index=index)
 retry_on_exception((lambda : css_find(css_selector)[index].fill(text)))
 wait_for((lambda _: css_has_value(css_selector, text, index=index)))
 return True

@ world . absorb def css_fill ( css_selector , text , index = 0 ) : wait_for_visible ( css_selector , index = index ) retry_on_exception ( ( lambda : css_find ( css_selector ) [ index ] . fill ( text ) ) ) wait_for ( ( lambda _ : css_has_value ( css_selector , text , index = index ) ) ) return True
set the value of the element to the specified text .