Laravel - Browser Tests - Retrieving Setting Values

Dusk provides several methods for interacting with the current value, display text, and attributes of elements on the page. For example, to get the "value" of an element that matches a given CSS or Dusk selector, use the value method:

    // Retrieve the value...
    $value = $browser->value('selector');
    // Set the value...
    $browser->value('selector', 'value');

You may use the inputValue method to get the "value" of an input element that has a given field name:

    $value = $browser->inputValue('field');