Test filesverification/TestModule/Test/ActionGroupTest/ActionGroupWithParameterizedElementsWithStepKeyReferences.xml
") */ class ActionGroupWithParameterizedElementsWithStepKeyReferencesCest { /** * @var bool */ private $isSuccess = false; /** * @param AcceptanceTester $I * @throws \Exception */ public function _after(AcceptanceTester $I) { if ($this->isSuccess) { unlink(__FILE__); } } /** * @Features({"TestModule"}) * @param AcceptanceTester $I * @return void * @throws \Exception */ public function ActionGroupWithParameterizedElementsWithStepKeyReferences(AcceptanceTester $I) { $I->comment("Entering Action Group [actionGroup] actionGroupWithParametrizedSelectors"); $testVariableActionGroup = $I->executeJS("return 1"); // stepKey: testVariableActionGroup $testVariable2ActionGroup = $I->executeJS("return 'test'"); // stepKey: testVariable2ActionGroup $I->createEntity("createSimpleDataActionGroup", "test", "simpleData", [], []); // stepKey: createSimpleDataActionGroup $I->click("#{$testVariable2ActionGroup} .John"); // stepKey: click1ActionGroup $I->click("#Doe-" . msq("simpleParamData") . "prename .{$testVariableActionGroup}"); // stepKey: click2ActionGroup $I->seeElement("//div[@name='Tiberius'][@class={$testVariableActionGroup}][@data-element='{$testVariable2ActionGroup}'][" . $I->retrieveEntityField('createSimpleData', 'name', 'test') . "]"); // stepKey: see1ActionGroup $I->comment("Exiting Action Group [actionGroup] actionGroupWithParametrizedSelectors"); } public function _passed(AcceptanceTester $I) { // Test passed successfully. $this->isSuccess = true; } }