更新README

This commit is contained in:
g1879 2020-06-10 16:49:23 +08:00
parent ab06b93087
commit 122cc43ced
2 changed files with 6 additions and 8 deletions

View File

@ -747,14 +747,13 @@ Parameter Description:
### get
​ get(url: str, params: dict = None, go_anyway=False, **kwargs) -> Union[bool, None]
​ get(url: str, go_anyway=False, **kwargs) -> Union[bool, None]
​ Jump to a url, sync cookies before jumping, and return whether the target url is available after jumping.
​ Parameter Description:
- url - Target url
- params - url parameters
- go_anyway - Whether to force a jump. If the target url is the same as the current url, the default is not to jump.
- kwargs - Used to access parameters when in session mode.
@ -965,7 +964,7 @@ Parameter Description:
### screenshot
​ screenshot(path: str = None, filename: str = None) -> str
​ screenshot(path: str, filename: str = None) -> str
​ Take a screenshot of the web page and return the path of the screenshot file.
@ -1192,7 +1191,7 @@ Parameter Description:
### screenshot
​ screenshot(path: str = None, filename: str = None) -> str
​ screenshot(path: str, filename: str = None) -> str
​ Take a screenshot of the web page and return the path of the screenshot file.

View File

@ -742,14 +742,13 @@ MixPage封装了页面操作的常用功能,可在driver和session模式间无
### get
​ get(url: str, params: dict = None, go_anyway=False, **kwargs) -> Union[bool, None]
​ get(url: str, go_anyway=False, **kwargs) -> Union[bool, None]
​ 跳转到一个url,跳转前先同步cookies,跳转后返回目标url是否可用。
​ 参数说明:
- url - 目标url
- params - url参数
- go_anyway - 是否强制跳转。若目标url和当前url一致,默认不跳转。
- kwargs - 用于session模式时访问参数。
@ -960,7 +959,7 @@ MixPage封装了页面操作的常用功能,可在driver和session模式间无
### screenshot
​ screenshot(path: str = None, filename: str = None) -> str
​ screenshot(path: str, filename: str = None) -> str
​ 网页截图,返回截图文件路径。
@ -1187,7 +1186,7 @@ driver模式的元素对象,包装了一个WebElement对象,并封装了常
### screenshot
​ screenshot(path: str = None, filename: str = None) -> str
​ screenshot(path: str, filename: str = None) -> str
​ 网页截图,返回截图文件路径。