hi im using laravel dusk and i have inputs as array like this ..
<input type='text' name='debits[]' />
<input type='text' name='debits[]' />
how can i add value to the first or second or specific input using the key of the array like
public function create(Browser $browser)
{
$browser
->select('journal_id',1)
->pause(100)
->click('.add-line')
->click('.add-line')
// code here to add 10 to first debits
// code here to add 15 to second debits
;
}
is that possible thanks a lot ..
array_name[]:nth-child(1)