protected function FacetsTest::clickLinkPartialName in Search API Solr 8
Same name and namespace in other branches
- 8.3 tests/src/Functional/FacetsTest.php \Drupal\Tests\search_api_solr\Functional\FacetsTest::clickLinkPartialName()
- 8.2 tests/src/Functional/FacetsTest.php \Drupal\Tests\search_api_solr\Functional\FacetsTest::clickLinkPartialName()
- 4.x tests/src/Functional/FacetsTest.php \Drupal\Tests\search_api_solr\Functional\FacetsTest::clickLinkPartialName()
Follows a link by partial name.
If the link is discovered and clicked, the test passes. Fail otherwise.
Parameters
string|\Drupal\Component\Render\MarkupInterface $label: Text between the anchor tags, uses starts-with().
int $index: Link position counting from zero.
Return value
string|bool Page contents on success, or FALSE on failure.
See also
::clickLink()
1 call to FacetsTest::clickLinkPartialName()
- FacetsTest::testFacets in tests/
src/ Functional/ FacetsTest.php - Tests basic facets integration.
File
- tests/
src/ Functional/ FacetsTest.php, line 118
Class
- FacetsTest
- Tests the facets functionality using the Solr backend.
Namespace
Drupal\Tests\search_api_solr\FunctionalCode
protected function clickLinkPartialName($label, $index = 0) {
return $this
->clickLinkHelper($label, $index, '//a[starts-with(normalize-space(), :label)]');
}