Skip to content

Commit

Permalink
Merge pull request #212 from jhedstrom/revert-171-patch-1
Browse files Browse the repository at this point in the history
Revert "Update assertSelectRadioById"

Signed-off-by: Jonathan Hedstrom <jhedstrom@gmail.com>
  • Loading branch information
jhedstrom committed Sep 16, 2015
1 parent 41291bc commit d6076a4
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 d6076a4

Please sign in to comment.