1

I have this content in the page source:

<td class="gridData" route="default" reset="0" urlparams="users index edit {userID}" label="Username">
<a href="/de/users/index/edit/userID/56">UM-Employee</a>
</td>

Any ideas on how to test this functionality to click on the user link?

makes
  • 6,438
  • 3
  • 40
  • 58
John Dow
  • 1,431
  • 2
  • 11
  • 8

2 Answers2

3

click_link("UM-Employee")

Sigurd
  • 7,865
  • 3
  • 24
  • 34
0

You can use the link text (as below) or an id-tag (which you would have to introduce into your HTML of course) to identify the link Capybara should follow.

Patru
  • 4,481
  • 2
  • 32
  • 42