public function FeatureContext::getVisitorActionEditLink in Acquia Lift Connector 7.2
Helper function to get the visitor action edit link for a particular action
Parameters
string $action_name: The machine name for the visitor action
Return value
\Behat\Mink\Element\NodeElement|null The element node for the link or null if not found.
3 calls to FeatureContext::getVisitorActionEditLink()
- FeatureContext::assertNoVisitorActionEditLink in behat-tests/
features/ bootstrap/ FeatureContext.php - @Then I should not see the visitor action edit link for the :action action
- FeatureContext::assertVisitorActionEditLink in behat-tests/
features/ bootstrap/ FeatureContext.php - @Then I should see the visitor action edit link for the :action action
- FeatureContext::assertVisitorActionEditLinkClick in behat-tests/
features/ bootstrap/ FeatureContext.php - @When I click the visitor action edit link for the :action action
File
- behat-tests/
features/ bootstrap/ FeatureContext.php, line 796
Class
- FeatureContext
- Defines application features from the specific context.
Code
public function getVisitorActionEditLink($action_name) {
$id = '#edit-visitor-action-' . $action_name;
return $this
->findElementInRegion($id, 'campaign_workflow_form');
}