Tests if a link is present in the breadcrumbs.
@Then the breadcrumb has the following links:
176265
public function breadcrumbHasTheFollowingLinks(TableNode $table)
    {
        foreach ($table->getTable() as $breadcrumbItem) {
            $text = $breadcrumbItem[0];
            $url = $breadcrumbItem[1];

            // this is not a link (the current page)
            if ($url === 'null') {
                $query = sprintf(
                    '//ul[@id="wo-breadcrumbs"]/li/span[text()="%s"]',
                    $text
                );
            } else {
                $query = sprintf(
                    '//ul[@id="wo-breadcrumbs"]/li/a[@href="%s"]/span[text()="%s"]',
                    $url,
                    $text
                );
            }

            Assertion::assertCount(
                1, $this->getXpath()->findXpath($query)
            );
        }
    }
657731
def assert_link_present_with_text(link_text)
			
      @web_browser.links.each { |link|
        return if link.text.include?(link_text)
      }
      fail( "can't find the link containing text: #{link_text}")
  
  	end
834583
public void addToBreadcrumb(String breadCrumb) {
    setBreadcrumb(breadCrumb + Constants.BREADCRUMB_DELIMITER + description);
    settings.forEach(setting -> setting.addToBreadcrumb(getBreadcrumb()));
  }
1264384
public static function addBreadcrumb(Breadcrumb $breadcrumb): void
    {
        $self = Hub::getCurrent()->getIntegration(self::class);

        if (!$self instanceof self) {
            return;
        }

        addBreadcrumb($breadcrumb);
    }
771942
public function getBreadcrumbs()
    {
        $params = $this->getSourceParams();

        // Only apply breadcrumbs if a "ClassName" filter is applied. This implies that we came from the
        // "element type report".
        if (!isset($params[static::CLASS_NAME_FILTER_KEY])) {
            return [];
        }

        $report = ElementTypeReport::create();

        return [ArrayData::create([
            'Title' => $report->title(),
            'Link' => $report->getLink(),
        ])];
    }
437342
public Links and(Iterable<Link> links) {

		List<Link> newLinks = new ArrayList<>(this.links);
		links.forEach(newLinks::add);

		return Links.of(newLinks);
	}
1208023
protected function renderCrumbs()
    {
        end($this->breadcrumbs);
        $lastKey = key($this->breadcrumbs);

        $output = '';

        $hrefSegments = array();

        $position = 1;

        foreach ($this->breadcrumbs as $key => $crumb) {
            $isLast = ($lastKey === $key);

            if ($crumb['hrefIsFullUrl']) {
                $hrefSegments = array();
            }

            if ($crumb['href']) {
                $hrefSegments[] = $crumb['href'];
            }

            $href = implode('/', $hrefSegments);

            if (!preg_match('#^https?://.*#', $href)) {
                $href = "/{$href}";
            }

            $output .= $this->renderCrumb($crumb['name'], $href, $isLast, $position);
            $position++;
        }

        return $output;
    }
494853
public function getBreadcrumbLinksAttribute(): array
    {
        $breadcrumbs = [];

        foreach ($this->ancestors as $ancestor) {
            $breadcrumbs[url($ancestor->full_slug)] = $ancestor->name;
        }

        $breadcrumbs[url($this->full_slug)] = $this->name;

        return $breadcrumbs;
    }
1236562
public static function isValidCrumb($crumb)
    {
        if (!is_array($crumb)) {
            return false;
        }

        if (!isset($crumb['name'], $crumb['href'])) {
            return false;
        }

        if (!is_string($crumb['name']) || !is_string($crumb['href'])) {
            return false;
        }

        if (empty($crumb['name']) || empty($crumb['href'])) {
            return false;
        }

        return true;
    }
467658
protected function setBreadcrumb()
    {
        $url = config('app.url');
        $navItems = $this->urlParentNavs;

        $this->breadcrumbItems = collect();

        // add nav items
        foreach ($navItems as $k => $page) {
            $this->addBreadcrumbLink($page->title, $page->url, $page->icon);
        }

        // reserved word (create, edit, show)
        if ($word = $this->checkIfReservedWordInUrl()) {
            $this->addBreadcrumbLink(ucfirst($word));
        }
    }
451309
public function getBreadcrumbsBackLink()
    {
        $breadcrumbs = $this->Breadcrumbs();
        if ($breadcrumbs->count() < 2) {
            return $this->LinkPages();
        }
        // Get second from end breadcrumb
        return $breadcrumbs
            ->offsetGet($breadcrumbs->count() - 2)
            ->Link;
    }
630209
private boolean checkRingLink(IRingSet ringSet, IAtomContainer ac, IAtom atom) {
        List<IAtom> neighbours = ac.getConnectedAtomsList(atom);
        if (ringSet.contains(atom)) {
            return true;
        }
        for (IAtom neighbour : neighbours) {
            if (ringSet.contains(neighbour)) {
                return true;
            }
        }
        return false;
    }
551973
public boolean isSatisfiedby(ClientlibLink link) {
        if (!type.equals(link.type)) return false;
        if (isCategory()) {
            if (!link.isCategory() || !category.equals(link.path)) return false;
        } else if (isExternalUri()) {
            if (!link.isExternalUri() || !externalUri.equals(link.path)) return false;
        } else {
            if (link.isCategory() || link.isExternalUri() || !pattern.matcher(link.path).matches()) return false;
        }
        if (!properties.equals(link.properties))
            return false;
        return true;
    }
736504
public function filterBreadcrumb()
    {
        $nodeList = $this->xp->query('//li[ contains(@class, "open") or contains(@class, "active")]');
        if (0 !== $nodeList->length) {
            $ul = $this->dom->createElement('ul');
            foreach ($nodeList as $node) {
                $li = $this->dom->createElement('li');
                $li->appendChild($node->firstChild);
                $ul->appendChild($li);
            }

            return $ul;
        }
    }
132767
def should_include_link_text(self, link_text, link_url):
    

    elements = ElementSelector(
        world.browser,
        str('//a[@href="%s"][contains(., %s)]' %
            (link_url, string_literal(link_text))),
        filter_displayed=True,
    )
    if not elements:
        raise AssertionError("Expected link not found.")
276268
public function breadcrumbs(array $links) {

        $out = '<div class="breadcrumbs">' . "\n" . '<ol>' . "\n";
        foreach ($links as $url => $label) {
            $out .= "\t<li>{$this->view->htmlLink($url, $label)}</li>\n";
        }
        $out .= "</ol>\n</div>";
        return $out;
    }
855567
public boolean isLink()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
    {
      SibTr.entry(tc, "isLink");
      SibTr.exit(tc, "isLink", new Boolean(_isLink));
    }
    return _isLink;
  }