mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
微调
This commit is contained in:
parent
c8ad1ce77d
commit
854e389a03
@ -87,12 +87,6 @@ class Drission(object):
|
||||
|
||||
@property
|
||||
def driver(self) -> WebDriver:
|
||||
"""返回WebDriver对象,如未初始化则按配置信息创建。 \n
|
||||
如设置了本地调试浏览器,可自动接入或打开浏览器进程。
|
||||
"""
|
||||
return self.get_driver()
|
||||
|
||||
def get_driver(self) -> WebDriver:
|
||||
"""返回WebDriver对象,如未初始化则按配置信息创建。 \n
|
||||
如设置了本地调试浏览器,可自动接入或打开浏览器进程。
|
||||
"""
|
||||
|
@ -52,7 +52,7 @@ class MixPage(SessionPage, DriverPage, BasePage):
|
||||
self._response = None
|
||||
|
||||
if self._mode == 'd':
|
||||
self._drission.get_driver() # 接管或创建浏览器
|
||||
self._drission.driver # 接管或创建浏览器
|
||||
|
||||
def __call__(self,
|
||||
loc_or_str: Union[Tuple[str, str], str, DriverElement, SessionElement, WebElement],
|
||||
|
Loading…
x
Reference in New Issue
Block a user