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?

Seleniumで「DevTools listening on・・・」を非表示にする

0
Posted at

環境

Windows11
Ruby 3.3
selenium-webdriver 4.24

内容

CUIに表示される、つぎのメッセージを非表示にする方法です。

message.rb
DevTools listening on ws://127.0.0.1:55836/devtools/browser/xxxxxxxxxx
Created TensorFlow Lite XNNPACK delegate for CPU.

ブラウザーに設定するオプションに、つぎの1行を追加します。

sample.rb
options.exclude_switches << 'enable-logging'

複数のオプションを設定する場合は、ワンライナーで書くこともできます。

sample.rb
options.exclude_switches << 'enable-logging' << 'enable-automation'
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?