public function iFillTheUiSelectWithAndSelectElement2($id, $item)
    {
        $items = explode("-", $item);
        
        if(count($items) > 0){
            $item = $items[0].'-'.((int)$items[1] - 1);
        }else {
            $item = "0-".((int)$item - 1);
        }
        $idItem = sprintf("#ui-select-choices-row-%s",$item);
        $this->iClickTheElement(sprintf("#%s > div.ui-select-match.ng-scope > span",$id));
        $this->spin(function($context) use ($idItem){
            $element = $context->findElement($idItem);
            return $element != null;
        },20);
        $element = $this->findElement($idItem);
        $element->click();
    }
public function iFillTheUiSelectWithAndSelectElement2($id, $item)
    {
        $items = explode("-", $item);
        
        if(count($items) > 0){
            $item = $items[0].'-'.((int)$items[1] - 1);
        }else {
            $item = "0-".((int)$item - 1);
        }
        $idItem = sprintf("#ui-select-choices-row-%s",$item);
        $this->iClickTheElement(sprintf("#%s > div.ui-select-match.ng-scope > span",$id));
        $this->spin(function($context) use ($idItem){
            $element = $context->findElement($idItem);
            return $element != null;
        },20);
        $element = $this->findElement($idItem);
        $element->click();
    }
public function iFillTheUiSelectWithAndSelectElement2 ( $ id , $ item ) { $ items = explode ( "-" , $ item ) ; if ( count ( $ items ) > 0 ) { $ item = $ items [ 0 ] . '-' . ( ( int ) $ items [ 1 ] - 1 ) ; } else { $ item = "0-" . ( ( int ) $ item - 1 ) ; } $ idItem = sprintf ( "#ui-select-choices-row-%s" , $ item ) ; $ this -> iClickTheElement ( sprintf ( "#%s > div.ui-select-match.ng-scope > span" , $ id ) ) ; $ this -> spin ( function ( $ context ) use ( $ idItem ) { $ element = $ context -> findElement ( $ idItem ) ; return $ element != null ; } , 20 ) ; $ element = $ this -> findElement ( $ idItem ) ; $ element -> click ( ) ; }
Selecccionar datos en select de tipo UI
@Given I fill the ui select :id with element :item
Selecccionar datos en select de tipo UI