Python playwright API 中文文档(完整版)

Python版playwright库是一个用于自动化Chromium、Firefox 和 WebKit 的统一API的Python库。Playwright是为了实现跨浏览器网络自动化,它是永远绿色、强大、可靠和快速的。有关更多信息,您可以查看同步版API文档异步版API文档

展开源码
# Copyright (c) Microsoft Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""
Python package `playwright` is a Python library to automate Chromium,
Firefox and WebKit with a single API. Playwright is built to enable cross-browser
web automation that is ever-green, capable, reliable and fast.
For more information you'll find the documentation for the sync API [here](sync_api.html)
and for the async API [here](async_api.html).
"""

__pdoc__ = {
    "_accessibility": False,
    "_async_base": False,
    "_browser": False,
    "_browser_context": False,
    "_browser_type": False,
    "_cdp_session": False,
    "_chromium_browser_context": False,
    "_connection": False,
    "_console_message": False,
    "_dialog": False,
    "_download": False,
    "_element_handle": False,
    "_event_context_manager": False,
    "_file_chooser": False,
    "_frame": False,
    "_helper": False,
    "_impl_to_api_mapping": False,
    "_input": False,
    "_js_handle": False,
    "_main": False,
    "_network": False,
    "_object_factory": False,
    "_page": False,
    "_path_utils": False,
    "_playwright": False,
    "_selectors": False,
    "_sync_base": False,
    "_transport": False,
    "_wait_helper": False,
    "_async_playwright": False,
    "_sync_playwright": False,
}

子模块

playwright.async_api

异步版API文档

playwright.sync_api

同步版API文档