protected function CountryTest::clickLinkInRow in Ubercart 8.4
Follows a link in the same table row as the label text.
Parameters
string $label: The label to find in a table column.
string $link: The link text to find in the same table row.
Return value
bool|string Page contents on success, or FALSE on failure.
1 call to CountryTest::clickLinkInRow()
- CountryTest::testCountryUi in uc_country/
tests/ src/ Functional/ CountryTest.php - Test enable/disable of countries.
File
- uc_country/
tests/ src/ Functional/ CountryTest.php, line 129
Class
- CountryTest
- Import, edit, and remove countries and their settings.
Namespace
Drupal\Tests\uc_country\FunctionalCode
protected function clickLinkInRow($label, $link) {
return $this
->clickLinkHelper($label, 0, '//td[normalize-space()=:label]/ancestor::tr[1]//a[normalize-space()="' . $link . '"]');
}