Skip to content

Commit

Permalink
Merge tag 'v3.1.2' into 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jhedstrom committed Sep 16, 2015
2 parents cbf034d + d07879a commit 4135a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drupal/DrupalExtension/Context/MinkContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ public function assertUncheckBox($checkbox) {
*/
public function assertSelectRadioById($label, $id = '') {
$element = $this->getSession()->getPage();
$radiobutton = $id ? $element->findById($id) : $element->find('named', array('radio', $label));
$radiobutton = $id ? $element->findById($id) : $element->find('named', array('radio', $this->getSession()->getSelectorsHandler()->xpathLiteral($label)));
if ($radiobutton === NULL) {
throw new \Exception(sprintf('The radio button with "%s" was not found on the page %s', $id ? $id : $label, $this->getSession()->getCurrentUrl()));
}
Expand Down

0 comments on commit 4135a4d

Please sign in to comment.