Skip to main content

常用的selenium-webdriver设置

Project description

se_com_opts

常用的selenium-webdriver设置

更新

  • 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。

用例

  • SetChromeOptions(webdriver).options: 返回最基础的设置项。
  • SetChromeOptions(webdriver,localdata_path = ’default').options: 返回使用默认本地*文件地址的设置项。
  • SetChromeOptions(webdriverm, extension_dir = <extension_dir>).options: 返回使用crx插件的设置项。

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

se-com-opts-1.0.5.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file se-com-opts-1.0.5.tar.gz.

File metadata

  • Download URL: se-com-opts-1.0.5.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for se-com-opts-1.0.5.tar.gz
Algorithm Hash digest
SHA256 37e18a9a784923e071a4adf711fe11f85bbda73e8f75cecbd5192a20f1daf172
MD5 489be39c022698825053c78b1a41040f
BLAKE2b-256 99a95546e5ea88152234707cb75178f5c0145246686f02f2d536900a8ff4ca7f

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