expect(page).to have_link("Export", href: "http://www.test.com/companies/123") # title + exact url
expect(page).to have_link(href: "http://www.test.com/companies/123") # exact url only
expect(page).to have_link("Export", href: /companies\/123/) #regexp
path = Regexp.escape("/users/#{user.id}/article/#{article.id}/conversion_reports/export.csv?report_type=weekly")
expect(page).to have_link("Export", href: /#{path}/)
first(:link, href: "http://eq8.eu").click
all(:link, href: "http://eq8.eu")
all(:link, href: nil)
click_link('Go to checkout')
find_link(title: 'Add User')
click_on('Save')
find(:link_or_button, 'go-back')