環境
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'