Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have recently begun trying to use behat for Drupal when I ran across this project which, in theory, will meet my Drupal testing needs. However, I am trying to access the Mink's fillfield() function. It appears that it should be inherited from the RawDrupalContext but I get "PHP Fatal error: Call to undefined method FeatureContext::fillfield()..." when I try to run it. I tried including various Use statements to no avail. What am I missing?
Comments
Comment #1
zkent CreditAttribution: zkent as a volunteer commentedC'mon help a guy out. I keep running into this issue and I want to keep using this code.Found it:
$this->getSession()->getPage()->fillField()
Comment #2
zkent CreditAttribution: zkent as a volunteer commentedComment #3
jhedstromGlad you figured it out!