次のコードの実行:
<?php
class InheritedFeatureContext extends Behat\MinkExtension\Context\MinkContext
{
/**
*Simulates hovering over a link
*
* @When /^I mouse over "([^"]*)"$/
*/
public function iMouseOver($link)
{
$this->getSession()->getPage()->findLink($link)->mouseOver();
}
/**
*Waits for the appearence of a drop down
*
* @Then /^I wait for the suggestion box to appear$/
*/
public function iWaitForTheSuggestionBoxToAppear()
{
$this->getSession()->wait(5000, "$('.suggestions-results').children().length > 0");
}
}
エラーメッセージが生成されます:
TypeError: $ is not a function
を参考に:
$this->getSession()->wait(5000, "$('.suggestions-results').children().length > 0");
このコードは、以前は問題なく機能していました。何か案は
コンテキスト: これは Behat/Mink 機能の一部です