@world.absorb
def css_has_value(css_selector, value, index=0):
 if value:
  wait_for((lambda _: css_value(css_selector, index=index)))
 return (css_value(css_selector, index=index) == value)

@ world . absorb def css_has_value ( css_selector , value , index = 0 ) : if value : wait_for ( ( lambda _ : css_value ( css_selector , index = index ) ) ) return ( css_value ( css_selector , index = index ) == value )
return a boolean indicating whether the element with css_selector has the specified value .