selenium:常见模块
差别
这里会显示出您选择的修订版和当前版本之间的差别。
后一修订版 | 前一修订版 | ||
selenium:常见模块 [2025/05/07 11:58] – 创建 bjgdtc | selenium:常见模块 [2025/05/07 11:59] (当前版本) – bjgdtc | ||
---|---|---|---|
行 1: | 行 1: | ||
- | | + | < |
- | driver.execute_cdp_cmd(" | + | options = webdriver.ChromeOptions() |
- | " | + | |
- | Object.defineProperty(navigator, | + | options.add_argument(" |
- | get: () => undefined\\ | + | |
- | })\\ | + | options.add_experimental_option(' |
- | """ | + | |
- | }) | + | driver = webdriver.Chrome(options=options) |
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | # | ||
+ | |||
+ | </ | ||
+ | |||
+ | 关闭自动化、关闭报错log | ||
/www/wwwroot/dokuwiki/data/attic/selenium/常见模块.1746590315.txt.gz · 最后更改: 2025/05/07 11:58 由 bjgdtc