private function VarbaseContext::_updateIDByCSS in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.6
Same name and namespace in other branches
- 8.4 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::_updateIDByCSS()
- 8.5 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::_updateIDByCSS()
- 8.7 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::_updateIDByCSS()
Helper function to update a selected element id attribute by css.
Parameters
string $htmlTagCSS:
string $htmlTagID:
string $prefix:
1 call to VarbaseContext::_updateIDByCSS()
- VarbaseContext::_addIDtoIFrame in tests/
features/ bootstrap/ VarbaseContext.php - Helper function to add an ID to an IFream.
File
- tests/
features/ bootstrap/ VarbaseContext.php, line 1451
Class
- VarbaseContext
- Defines application features from the specific context.
Code
private function _updateIDByCSS($htmlTagCSS, $htmlTagID, $prefix = '') {
$this
->getSession()
->getDriver()
->evaluateScript('jQuery("' . $htmlTagCSS . '").attr("id", "' . $prefix . $htmlTagID . '");');
}