差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| selenium-webdriver [2025/02/22 16:07] – skk | selenium-webdriver [2025/11/06 20:33] (現在) – skk | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | = [[selenium-webdriver]] LM: [2025-02-22 16:05:39] | + | = [[selenium-webdriver]] LM: [2025-11-06 20:33:13] |
| ~~NOCACHE~~ | ~~NOCACHE~~ | ||
| 行 171: | 行 171: | ||
| ===== - SeleniumBase の動作設定 [2025-02-22] ===== | ===== - SeleniumBase の動作設定 [2025-02-22] ===== | ||
| SeleniumBase もソースコードないでは Linux への分岐しか対応してない.ただ,undetected_chromedriver は Linux バイナリをダウンロードしてきていたので,Linux Emulation しなければならなかったが,SeleniumBase は chromedriver に対してなんらかの方法でパッチを当てているので,FreeBSD でインストールできる Chromium に附属している chromedriver をベースにして動作する.つまり,linux emulation しなくても大丈夫. | SeleniumBase もソースコードないでは Linux への分岐しか対応してない.ただ,undetected_chromedriver は Linux バイナリをダウンロードしてきていたので,Linux Emulation しなければならなかったが,SeleniumBase は chromedriver に対してなんらかの方法でパッチを当てているので,FreeBSD でインストールできる Chromium に附属している chromedriver をベースにして動作する.つまり,linux emulation しなくても大丈夫. | ||
| + | |||
| + | [2025-11-06] 8 ヶ月ぶりにバージョンアップしたが,すでにそこそこ変更点があった.特に,OS/ | ||
| ==== - python ライブラリの準備 ==== | ==== - python ライブラリの準備 ==== | ||
| 行 204: | 行 206: | ||
| 48 | 48 | ||
| </ | </ | ||
| + | |||
| + | [2025-11-06] __init__.py は,以下の行数の部分で,FreeBSD の分岐を追加. | ||
| + | <code python> | ||
| + | 30 IS_POSIX = sys.platform.startswith((" | ||
| + | 481 # (So that close() is always called) | ||
| + | 482 if " | ||
| + | 483 | ||
| + | 533 if " | ||
| + | 534 | ||
| + | 535 if self.service.is_connectable(): | ||
| + | 559 | ||
| + | 560 if " | ||
| + | 561 | ||
| + | </ | ||
| + | |||
| + | [2025-11-06] core/ | ||
| + | |||
| + | <code python> | ||
| + | 34 class OSType(object): | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | 39 | ||
| + | 56 def os_name(): | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | 109 if os_name() != OSType.LINUX or os_name() != OSType.FREEBSD: | ||
| + | 110 | ||
| + | 111 paths = [ | ||
| + | 112 "/ | ||
| + | 434 | ||
| + | 435 | ||
| + | 436 | ||
| + | 437 | ||
| + | 438 | ||
| + | 439 | ||
| + | 440 | ||
| + | 517 | ||
| + | 518 " | ||
| + | 519 " | ||
| + | 520 " | ||
| + | 521 " | ||
| + | 522 " | ||
| + | 523 " | ||
| + | 524 " | ||
| + | 525 " | ||
| + | 526 ), | ||
| + | </ | ||
| これで少なくとも,僕の環境では SeleniumBase が FreeBSD で動作している. | これで少なくとも,僕の環境では SeleniumBase が FreeBSD で動作している. | ||