<template name="AdventureSelectorResult">
  {{#with selector}}
    <div>
      <span>{{selector}}</span>
      {{#if match}}
        <span class="label label-success">Matched a single element</span>
        <div class="btn-group">
          <button class="btn btn-xs btn-primary dropdown-toggle" data-toggle="dropdown">
            <span class="glyphicon glyphicon-plus"></span>
            <span class="caret"></span>
          </button>
          {{> AdventureSelectorActionMenu selector=this node=../adventureContext.currentNode.get}}
        </div>
      {{else}}
        {{#if matchCount}}
          <span class="label label-warning">Matched multiple elements</span>
        {{else}}
          <span class="label label-default">Matched no elements</span>
        {{/if}}
      {{/if}}
    </div>
  {{/with}}
</template>
<template name="AdventureSelectorResult">
  {{#with selector}}
    <div>
      <span>{{> Xpath selector}}</span>
      {{#if match}}
        <span class="label label-success">Matched a single element</span>
        <div class="btn-group">
          <button class="btn btn-xs btn-primary dropdown-toggle" data-toggle="dropdown">
            <span class="glyphicon glyphicon-plus"></span>
            <span class="caret"></span>
          </button>
          {{> AdventureSelectorActionMenu selector=this node=../adventureContext.currentNode.get}}
        </div>
      {{else}}
        {{#if matchCount}}
          <span class="label label-warning">Matched multiple elements</span>
        {{else}}
          <span class="label label-default">Matched no elements</span>
        {{/if}}
      {{/if}}
    </div>
  {{/with}}
</template>
Update SelectorResult to use the XPath template
Update SelectorResult to use the XPath template
