src/LinusShops/Contexts/Web.php
public function selectOptionInDropdownByPosition($dropdownSelectorString, $position)
    {
        $select = $this->getElementByCssSelector($dropdownSelectorString);
        $firstOption = $this->getElementByCssSelector($dropdownSelectorString." option:nth-of-type({$position})");
        $select->selectOption($firstOption->getAttribute('value'));
    }
public function selectOptionInDropdownByPosition($dropdownSelectorString, $position)
    {
        $select = $this->getElementByCssSelector($dropdownSelectorString);
        $firstOption = $this->getElementByCssSelector($dropdownSelectorString." option:nth-of-type({$position})");
        $select->selectOption($firstOption->getAttribute('value'));
    }
public function selectOptionInDropdownByPosition ( $ dropdownSelectorString , $ position ) { $ select = $ this -> getElementByCssSelector ( $ dropdownSelectorString ) ; $ firstOption = $ this -> getElementByCssSelector ( $ dropdownSelectorString . " option:nth-of-type({$position})" ) ; $ select -> selectOption ( $ firstOption -> getAttribute ( 'value' ) ) ; }
Select the first option in a dropdown, whatever it may be.

@param $dropdownSelectorString - the target select dropdown
Select the first option in a dropdown whatever it may be .