You are here

private function VarbaseContext::_updateIDByCSS in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.7

Same name and namespace in other branches
  1. 8.4 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::_updateIDByCSS()
  2. 8.5 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::_updateIDByCSS()
  3. 8.6 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 1481

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 . '");');
}