public function VarbaseContext::iSelectTheParagraphComponent in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 9.0.x
Same name and namespace in other branches
- 8.8 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iSelectTheParagraphComponent()
Select a paragraph component.
Varbase Context #varbase.
Example 1: When I select the "Drupal block" paragraph component Example 2: And I select the "Modal" paragraph component
@When /^I select (?:|the )"([^"]*)" paragraph component$/
File
- tests/
features/ bootstrap/ VarbaseContext.php, line 1653
Class
- VarbaseContext
- Defines application features from the specific context.
Code
public function iSelectTheParagraphComponent($value) {
$this
->getSession()
->getPage()
->find('xpath', '//*[contains(@class, "paragraphs-add-dialog") and contains(@class, "ui-dialog-content")]//*[contains(@name, "' . $value . '")]')
->click();
}