How to set value in a text field in Php - Behat?

How to set value in a text field in Php - Behat?

Hi Rhian,

Add the following snippet in your FeatureContext.php:

  public function iAddCheckboxWithText($arg1)
    {
      $inputBox = self::$driver->findElement(WebDriverBy::id("sampletodotext"));
      $inputBox->sendKeys($arg1);
    }