0
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.

Feature specでJavaScriptのコンソールログを確認するときのリンクメモ

0
Last updated at Posted at 2019-10-06

基本的には↓リンクの通りで

JavaScript が動作する Capybara の feature spec でブラウザのコンソールを確認する - valid,invalid https://ohbarye.hatenablog.jp/entry/2018/03/17/121231

  • binding.pry を仕込んで
  • page.driver.browser.manage.logs.get(:browser) を実行

すれば確認できた。
ただし、以下ページ等を確認するとデフォルトでは ERRORかWARNのログしか出力されないそうなので、 console.error で出力する。

javascript – capybaraでブラウザのコンソールログをキャプチャする - コードログ https://codeday.me/jp/qa/20190729/1336441.html

0
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
0
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?