Skip to content

checkOption doesn't work with radio inputs #17

@petr

Description

@petr

Example html

<div class="reg-form-checkbox">
        <label>
            <input type="radio" name="current_tax[tax_id]" id="current_tax_tax_id_1" value="1" > Tax single
        </label>
</div>
$i->checkOption('#current_tax_tax_id_1');

Throws error

Couldn't test select tax (StartPageCept.php)
  Exception thrown LogicException:
  You cannot tick "current_tax[tax_id]" as it is not a checkbox (radio).
  Stack trace:
   #1 tick /usr/share/php/mink/src/Behat/Mink/Driver/GoutteDriver.php:329
   #2 check /usr/share/php/mink/src/Behat/Mink/Element/NodeElement.php:147
   #3 check /usr/share/php/Codeception/src/Codeception/Util/Mink.php:213

Codeception PHP Testing Framework v1.0.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions