original_string: public function selectOptionInChosen($label, $option)
  	{
  		$select = $this->findField($label);
  		$selectID = $select->getAttribute('id');
  		$chosenSelectID = $selectID . '_chzn';
  
  		$this->debug("I open the $label chosen selector");
  		$this->click(array('xpath' => "//div[@id='$chosenSelectID']/a/div/b"));
  		$this->debug("I select $option");
  		$this->click(array('xpath' => "//div[@id='$chosenSelectID']//li[text()='$option']"));
  
  		// Gives time to chosen to close
  		$this->wait(1);
  	}
code: public function selectOptionInChosen($label, $option)
  	{
  		$select = $this->findField($label);
  		$selectID = $select->getAttribute('id');
  		$chosenSelectID = $selectID . '_chzn';
  
  		$this->debug("I open the $label chosen selector");
  		$this->click(array('xpath' => "//div[@id='$chosenSelectID']/a/div/b"));
  		$this->debug("I select $option");
  		$this->click(array('xpath' => "//div[@id='$chosenSelectID']//li[text()='$option']"));
  
  		// Gives time to chosen to close
  		$this->wait(1);
  	}
code_tokens: public function selectOptionInChosen ( $ label , $ option ) { $ select = $ this -> findField ( $ label ) ; $ selectID = $ select -> getAttribute ( 'id' ) ; $ chosenSelectID = $ selectID . '_chzn' ; $ this -> debug ( "I open the $label chosen selector" ) ; $ this -> click ( array ( 'xpath' => "//div[@id='$chosenSelectID']/a/div/b" ) ) ; $ this -> debug ( "I select $option" ) ; $ this -> click ( array ( 'xpath' => "//div[@id='$chosenSelectID']//li[text()='$option']" ) ) ; // Gives time to chosen to close $ this -> wait ( 1 ) ; }
docstring: Selects an option in a Chosen Selector based on its label
  
  @param   string  $label   The text in the <label> with for attribute that links to the <select> element
  @param   string  $option  The text in the <option> to be selected in the chosen selector
  
  @return  void
  
  @since    3.0.0
docstring_tokens: Selects an option in a Chosen Selector based on its label