次のタグが付いている話題の回答:

5
Accepted

テスト目的で、ブラウザの時刻を一時的に夜(e.g. 深夜0時) にできますか?

libfaketime oriri さんのコメントで出ている libfaketime を Linux で試したところ、概ね動いているようなので、これが簡単でよいのではないでしょうか。ファイルのタイムスタンプなどもずれると思うので、メインのブラウザでは動かさない方がよいかも知れません。 # 最新バージョンにはコマンドが付属しています # google-chrome などは問題なく動いているようです ...
  • 1.1万
1

python seleniumでjavascriptを無効にする

from selenium import webdriver from selenium.webdriver.firefox.options import Options options = Options() options.set_preference('javascript.enabled', False) browser = webdriver.Firefox(options=...

Only top scored, non community-wiki answers of a minimum length are eligible