Finally, the attribute method may be used to retrieve the value of an attribute of an element matching the given selector:
attribute
$attribute = $browser->attribute('selector', 'value');