src/basis/tracker.js
function getCssSelectorFromPath(path, selector){
  return parsePath(path).map(function(role){
    if (!role.role)
      return '';

    var start = escapeQuotes(role.role);
    var end = (role.subrole ? '/' + escapeQuotes(role.subrole) : '') + '"]';

    if (role.roleId)
    {
      if (selector && role.roleId == '*')
        start = '[role-marker^="' + start + '("][role-marker$=")';
      else
        start = '[role-marker="' + start + '(' + escapeQuotes(role.roleId) + ')';
    }
    else
    {
      start = '[role-marker="' + start;
    }

    return start + end;
  }).join(' ');
}
function getCssSelectorFromPath(path, selector){
  return parsePath(path).map(function(role){
    if (!role.role)
      return '';

    var start = escapeQuotes(role.role);
    var end = (role.subrole ? '/' + escapeQuotes(role.subrole) : '') + '"]';

    if (role.roleId)
    {
      if (selector && role.roleId == '*')
        start = '[role-marker^="' + start + '("][role-marker$=")';
      else
        start = '[role-marker="' + start + '(' + escapeQuotes(role.roleId) + ')';
    }
    else
    {
      start = '[role-marker="' + start;
    }

    return start + end;
  }).join(' ');
}
function getCssSelectorFromPath ( path , selector ) { return parsePath ( path ) . map ( function ( role ) { if ( ! role . role ) return '' ; var start = escapeQuotes ( role . role ) ; var end = ( role . subrole ? '/' + escapeQuotes ( role . subrole ) : '' ) + '"]' ; if ( role . roleId ) { if ( selector && role . roleId == '*' ) start = '[role-marker^="' + start + '("][role-marker$=")' ; else start = '[role-marker="' + start + '(' + escapeQuotes ( role . roleId ) + ')' ; } else { start = '[role-marker="' + start ; } return start + end ; } ) . join ( ' ' ) ; }
`show` event  
Transforms given path to a css selector
@param {string} path
@param {string} selector
@private
@return {string}
show event Transforms given path to a css selector