php - Symfony crawler select OPTION in SELECT list without FORM
one text
Solution:
Try something like
$myInput = $crawler->filterXPath(".//select[@id='ff-select-Choice']//option[@value='val2']");
and see if it works.
Sourceone text
Try something like
$myInput = $crawler->filterXPath(".//select[@id='ff-select-Choice']//option[@value='val2']");
and see if it works.
Source