Skip to main content

常用的selenium-webdriver设置

Project description

SeleniumCommonSetting

常用的selenium-webdriver设置

更新

  • 1.2.1

    • 修正在不添加Chromium_path参数时依然会使用Chromium的BUG。
  • 1.2.0 2022/01/10

    • 增加添加user-agent功能
  • 1.1.1 2021/12/28

    • 修正chromium拼写错误问题。
  • 1.1.0 2021/12/28

    • 增加支持Chromnium。
    • 修改参数localdata_path默认值为'default'。
  • 1.0.6 2021/11/21

    • 修改了名称为SeleniumCommonSetting,Class也修改为SeleniumCommonSetting。
  • 1.0.5 2021/11/16

    • 对注释和部分参数名进行修改,减少使用时引用的参数错误。

介绍

常用的selenium webdriver chrome options配置项设置工具。

用例


属性

  • options: 根据设置的参数所返回的chrome_options。

参数

  • localdata_path: 浏览器本地文件的地址,默认为None,可赋值'default'来导入本地文件的默认地址。
  • extension_dir:存放浏览器插件的【文件夹地址】,默认为None,插件必须为打包好的crx格式,【不能】与无窗口模式同时使用。
  • headless: 无窗口模式,默认为False。
  • pic: 无图模式,默认为False。
  • js: 不加载Javascript,默认为False。
  • css:不加载CSS,默认为False。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SeleniumCommonSetting-1.2.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SeleniumCommonSetting-1.2.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file SeleniumCommonSetting-1.2.1.tar.gz.

File metadata

  • Download URL: SeleniumCommonSetting-1.2.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for SeleniumCommonSetting-1.2.1.tar.gz
Algorithm Hash digest
SHA256 cb10c1b2b65eeeb96a388088edfd0aa44a7eaec0708d9482418c58da09e4384d
MD5 3122fac1957248c807791ef58b354333
BLAKE2b-256 2e304480b15af468462b537bc8dafce58c16c12ff06102b0be836886653ff1e8

See more details on using hashes here.

File details

Details for the file SeleniumCommonSetting-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: SeleniumCommonSetting-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for SeleniumCommonSetting-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f8fb4ba32cf5c97ac58445aab9756220b63113e5b4986f7456c0aa5c95b5c13e
MD5 866fedbc412805ab2bff9ba38594f822
BLAKE2b-256 41b2f12168907bb932553e46eba3ff0ed5af0d815766bc6b7370dd6da1e79684

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page