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=...
- 25
Only top scored, non community-wiki answers of a minimum length are eligible
関連するタグ
firefox × 57javascript × 20
html × 14
google-chrome × 11
ubuntu × 4
selenium × 4
firefox-webextension × 3
python × 2
php × 2
python3 × 2
jquery × 2
centos × 2
http × 2
sqlite × 2
selenium-webdriver × 2
safari × 2
印刷 × 2
c# × 1
android × 1
c++ × 1
linux × 1
css × 1
windows × 1
macos × 1
aws × 1