[build-system]
requires = ["setuptools", "setuptools-rust"]
build-backend = "setuptools.build_meta"
[project]
name = "selenium"
version = "4.35.0.202507081456"
license = { text = "Apache 2.0" }
description = "Official Python bindings for Selenium WebDriver."
readme = "README.rst"
requires-python = "~=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Libraries",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"urllib3[socks]~=2.5.0",
"trio~=0.30.0",
"trio-websocket~=0.12.2",
"certifi>=2025.6.15",
"typing_extensions~=4.14.0",
"websocket-client~=1.8.0",
]
[project.urls]
homepage = "https://www.selenium.dev"
source = "https://github.com/SeleniumHQ/selenium/tree/trunk/py"
download = "https://pypi.org/project/selenium"
changelog = "https://github.com/SeleniumHQ/selenium/blob/trunk/py/CHANGES"
documentation = "https://www.selenium.dev/documentation/webdriver"
issues = "https://github.com/SeleniumHQ/selenium/issues"
[tool.setuptools]
zip-safe = false
[tool.setuptools.packages.find]
include = ["selenium*"]
exclude = ["test*"]
namespaces = true
[[tool.setuptools-rust.bins]]
target = "selenium.webdriver.common.selenium-manager"
[tool.setuptools.package-data]
"*" = [
"*.py",
"*.rst",
"*.json",
"*.xpi",
"*.js",
"py.typed",
"prune*",
"selenium.egg-info*",
"selenium-manager",
"selenium-manager.exe",
"CHANGES",
"LICENSE"
]
[tool.pytest.ini_options]
console_output_style = "progress"
faulthandler_timeout = 60
log_cli = true
trio_mode = true
markers = [
"xfail_chrome: Tests expected to fail in Chrome",
"xfail_edge: Tests expected to fail in Edge",
"xfail_firefox: Tests expected to fail in Firefox",
"xfail_ie: Tests expected to fail in IE",
"xfail_remote: Tests expected to fail with Remote webdriver",
"xfail_safari: Tests expected to fail in Safari",
"xfail_webkitgtk: Tests expected to fail in WebKitGTK",
"xfail_wpewebkit: Tests expected to fail in WPEWebKit",
"no_driver_after_test: If there are no drivers after the test it will create a new one."
]
python_files = ["test_*.py", "*_test.py", "*_tests.py"]
testpaths = ["test"]
[tool.mypy]
exclude = "selenium/webdriver/common/devtools"
files = "selenium"
warn_unused_configs = true
disallow_subclassing_any = false
disallow_any_generics = false
disallow_untyped_calls = false
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = false
disallow_untyped_decorators = false
no_implicit_optional = false
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = false
warn_unreachable = false
[[tool.mypy.trio_websocket]]
ignore_missing_imports = true
[[tool.mypy._winreg]]
ignore_missing_imports = true
[tool.ruff]
extend-exclude = [
"selenium/webdriver/common/devtools/",
"generate.py",
]
line-length = 120
respect-gitignore = true
target-version = "py39"
[tool.ruff.lint]
extend-select = ["E4", "E7", "E9", "F", "I", "E501", "RUF022"]
fixable = ["ALL"]
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 120