1
Symfony 프로젝트에서 작업 중이며 Behat/Mink로 단위 테스트를 만들고 싶습니다. 내 FeatureContext 클래스에서 마지막 행을 정의Behat : switchToIFrame()을 사용하여 오류가 발생했습니다.
Feature: Homepage
Scenario: Check if I can log on
Given I am on "/"
And I follow "connexion_js"
And I switch to the iframe "cboxIframe"
:
나는 시나리오를 가지고있다.
class FeatureContext extends MinkContext implements KernelAwareInterface{
// ...
/**
* @Given /^I switch to the iframe "([^"]*)"$/
*/
public function iSwitchToIframe($arg1 = null)
{
$this->getSession()->switchToIFrame($arg1);
}
}
내 쉘 명령을 실행할 때 :
$: bin/behat "@PoleMainBundle"
Feature: Homepage
Scenario: Check if I can log on # src/xxx/xxx/MainBundle/Features/homepage.feature:2
Given I am on "/" # xxx\xxx\MainBundle\Features\Context\FeatureContext::visit()
And I follow "connexion_js" # xxx\xxx\MainBundle\Features\Context\FeatureContext::clickLink()
And I switch to the iframe "cboxIframe" # xxx\xxx\MainBundle\Features\Context\FeatureContext::iSwithToIframe()
iFrame management is not supported by Behat\Symfony2Extension\Driver\KernelDriver
...