差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| selenium-webdriver [2025/11/06 20:29] – skk | selenium-webdriver [2025/11/06 20:33] (現在) – skk | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | = [[selenium-webdriver]] LM: [2025-11-06 20:29:25] | + | = [[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 ライブラリの準備 ==== | ||
| 行 222: | 行 224: | ||
| <code python> | <code python> | ||
| - | 34 class OSType(object): | + | 34 class OSType(object): |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | 39 |
| - | | + | 56 def os_name(): |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | 109 if os_name() != OSType.LINUX or os_name() != OSType.FREEBSD: | + | 109 if os_name() != OSType.LINUX or os_name() != OSType.FREEBSD: |
| - | 110 | + | 110 |
| - | 111 paths = [ | + | 111 paths = [ |
| - | 112 "/ | + | 112 "/ |
| - | 434 | + | 434 |
| - | 435 | + | 435 |
| - | 436 | + | 436 |
| - | 437 | + | 437 |
| - | 438 | + | 438 |
| - | 439 | + | 439 |
| - | 440 | + | 440 |
| - | 517 | + | 517 |
| - | 518 " | + | 518 " |
| - | 519 " | + | 519 " |
| - | 520 " | + | 520 " |
| - | 521 " | + | 521 " |
| - | 522 " | + | 522 " |
| - | 523 " | + | 523 " |
| - | 524 " | + | 524 " |
| - | 525 " | + | 525 " |
| - | 526 ), | + | 526 ), |
| </ | </ | ||