Dynami c список поиска находится под одним тегом ul и имеет разные теги li. Под тегами li у него есть два дочерних элемента, в которых тег span содержит значение.
<ul class="dropdown-menu ng-isolate-scope" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+'px', left: position().left+'px'}" role="listbox" aria-hidden="false" uib-typeahead-popup="" id="typeahead-60-892" matches="matches" active="activeIdx" select="select(activeIdx, evt)" move-in-progress="moveInProgress" query="query" position="position" assign-is-open="assignIsOpen(isOpen)" debounce="debounceUpdate" template-url="postlogin/admin/clientProvision/typeAheadResultsTemplate.html" style="top: 34px; left: 10px;">
<!-- ngRepeat: match in matches track by $index -->
<li class="uib-typeahead-match ng-scope active" ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index, $event)" role="option" id="typeahead-60-892-option-0" tabindex="0" style="">
<a class="law-firm-office-name-search-result ng-scope">
<span ng-bind-html="match.label | uibTypeaheadHighlight:query" class="ng-binding"><strong>**Baker Tilly Beers &</strong> Cutler, PLLC, Tysons Corner**</span>
</a>
</li><!-- end ngRepeat: match in ma``tches track by $index --><li class="uib-typeahead-match ng-scope" ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index, $event)" role="option" id="typeahead-60-892-option-1" tabindex="0">
<a class="law-firm-office-name-search-result ng-scope">
<span ng-bind-html="match.label | uibTypeaheadHighlight:query" class="ng-binding"><strong>**Baker Tilly Beers &</strong> Cutler, PLLC, Vienna VA**</span>
</a>
</li><!-- end ngRepeat: match in matches track by $index -->
</ul>
Я знаю подход, но не могу создать xpath, чтобы получить список веб-элементов, а затем Я могу сравнить с текстом, который я хочу отправить