Laravel - Browser Tests - Retrieving Attributes

Finally, the attribute method may be used to retrieve the value of an attribute of an element matching the given selector:

    
    $attribute = $browser->attribute('selector', 'value');