4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

テストにおいて特定のリンクをクリックする方法

Posted at

テストにおいて特定のリンクをクリックする

スクリーンショット 2020-01-16 16.14.02.jpeg

前提条件

taskアプリを作成してある。(scaffoldでもOK)
gem 'capybara', '>= 2.15'
gem 'rspec-rails'
インストール済

上記画像の黒丸に囲まれた(詳細を確認する)をクリックする

task_spec.rb
# 省略
visit tasks_path
tds = page.all('td')
tds[24].click
# 省略

4
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?