These are chat archives for Behat/Behat

9th
Mar 2017
Sakona Chhoeurng
@sakonachhoeurng
Mar 09 2017 09:04
Hi, My name is Sakona. Currently, I am working with Behat. Nice to know you all.
Sakona Chhoeurng
@sakonachhoeurng
Mar 09 2017 09:26
@SamyOteroGlez I see your question and your condition should be
/**
 * Select the specific radio button by its label
 * = HTML Example =
 * <input type="radio" id="radioIdentifier" name="radioText" value="radioValue">
 * <label for="radioIdentifier">labelText</label>
 *
 * Example: When I select the "labelText" radio button
 *
 * @When /^I select the "([^"]*)" radio button$/
 *
 * @param string $radioLabel
 *
 * @throws ElementNotFoundException
 * @return void
 */
public function iSelectTheRadioButton($radioLabel) {
    $radioButton = $this->getSession()->getPage()->findField($radioLabel);
    if (null === $radioButton) {
        throw new ElementNotFoundException($this->getSession(), 'form field', 'id|name|label|value', $radioLabel);
    }
    $this->getSession()->getDriver()->click($radioButton->getXPath());
}
Roj Vroemen
@Rojtjo
Mar 09 2017 09:54
Hey everyone, is it possible to configure extensions per suite?
Sakona Chhoeurng
@sakonachhoeurng
Mar 09 2017 10:04

Hi everyone, when I put this code

default:
    formatter:
        name:               pretty
        parameters:
            output_styles:
                comment:    [ black, white, [ underscore ] ]

then got error Invalid type for path "testwork.formatters.name". Expected array, but got string