Skip to content

Instantly share code, notes, and snippets.

@andreasneuber
Last active November 6, 2021 15:35
Show Gist options
  • Save andreasneuber/e1feafe52cebd4a73a8cd32ec2d944c9 to your computer and use it in GitHub Desktop.
Save andreasneuber/e1feafe52cebd4a73a8cd32ec2d944c9 to your computer and use it in GitHub Desktop.

Revisions

  1. andreasneuber revised this gist Nov 6, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion cc-grab-urls.php
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    private function extract_all_team_member_links( AcceptanceTester $I ): array {
    private function extract_all_page_links( AcceptanceTester $I ): array {
    $I->amOnPage( '/example/' );
    $url = $this->base_url . 'example/';
    $aLinks = $I->grabMultiple( "//a[contains(@href,'{$url}' )]", 'href' );
  2. andreasneuber created this gist Nov 6, 2021.
    7 changes: 7 additions & 0 deletions cc-grab-urls.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    private function extract_all_team_member_links( AcceptanceTester $I ): array {
    $I->amOnPage( '/example/' );
    $url = $this->base_url . 'example/';
    $aLinks = $I->grabMultiple( "//a[contains(@href,'{$url}' )]", 'href' );

    return array_unique( $aLinks );
    }