public function VarbaseContext::iExpandThefield 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::iExpandThefield()
- 8.4 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iExpandThefield()
- 8.5 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iExpandThefield()
- 8.6 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iExpandThefield()
- 8.7 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iExpandThefield()
Expand a field group by its id attribute.
Varbase Context #varbase.
Example #1: When I expand the field "Field Group ID" Example #2: And I expand the field "More options"
@When I expand the field :arg1
File
- tests/
features/ bootstrap/ VarbaseContext.php, line 1470
Class
- VarbaseContext
- Defines application features from the specific context.
Code
public function iExpandThefield($fieldID) {
$js = <<<JS
var group = document.getElementById("{<span class="php-variable">$fieldID</span>}");
group.setAttribute("open","");
JS;
$this
->getSession()
->executeScript($js);
}