captbaritone/codeception-mailcatcher-module

Get URL for link labelled X

Open

#43 创建于 2018年11月27日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)PHP (39 fork)github user discovery
enhancementhelp wanted

仓库指标

Star
 (111 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Feature request

Add a new method that allows the user to specify a link label, of which the method returns the URL that the label is linked to.

e.g. if I have an email with 2 links:

  1. <a href="http://first-link.com">First link</a>
  2. <a href="http://second-link.com">Second link</a>

It would be great if we could do something like: $I->getUrlForLink('Second link') to get the URL from the second link.

Feel free to make the method name anything you like that makes sense.

贡献者指南