更新README

This commit is contained in:
g1879 2020-05-25 23:52:38 +08:00
parent f82203ea45
commit dc6fb9ed92
2 changed files with 16 additions and 8 deletions

View File

@ -510,9 +510,13 @@ print(page.ele('@id:su').text) # Output:百度一下
Obtain the WebDriver object, which is automatically created when it is called and initialized according to the incoming configuration or ini file configuration. Obtain the WebDriver object, which is automatically created when it is called and initialized according to the incoming configuration or ini file configuration.
### driver_options
Return driver configuration in dictionary format.
### session_options ### session_options
Return or set session configuration in dictionary format. Return session configuration in dictionary format.
### cookies_to_session ### cookies_to_session
@ -856,15 +860,15 @@ Parameter Description:
- path - Screenshot save path, default is the temporary folder specified in the ini file - path - Screenshot save path, default is the temporary folder specified in the ini file
- filename - Screenshot file name, default is page title as file name - filename - Screenshot file name, default is page title as file name
### is_downloading ### chrome_downloading
is_downloading(download_path: str = None) -> bool chrome_downloading(download_path: str = None) -> list
Check whether the browser is downloaded. Check whether the browser is downloaded.
Parameter Description: Parameter Description:
- download_path - Download path, the default is the path defined in the ini file - download_path - Download path, the default is the download path in chrome options configuration
### close_driver ### close_driver

View File

@ -513,6 +513,10 @@ class **Drission**(driver_options: Union[dict, Options] = None, session_options:
获取WebDriver对象调用时自动创建按传入配置或ini文件配置初始化。 获取WebDriver对象调用时自动创建按传入配置或ini文件配置初始化。
### driver_options
以字典格式返回或设置driver配置。
### session_options ### session_options
以字典格式返回或设置session配置。 以字典格式返回或设置session配置。
@ -859,15 +863,15 @@ MixPage封装了页面操作的常用功能可在driver和session模式间无
- path - 截图保存路径默认为ini文件中指定的临时文件夹 - path - 截图保存路径默认为ini文件中指定的临时文件夹
- filename - 截图文件名默认为页面title为文件名 - filename - 截图文件名默认为页面title为文件名
### is_downloading ### chrome_downloading
is_downloading(download_path: str = None) -> bool chrome_downloading(download_path: str = None) -> list
检测浏览器是否下载完毕 查看浏览器下载情况
参数说明: 参数说明:
- download_path - 下载路径,默认为ini文件中定义的路径 - download_path - 下载路径,默认为chrome options配置中的下载路径
### close_driver ### close_driver