This commit is contained in:
g1879 2022-01-11 16:01:44 +08:00
parent c8ad1ce77d
commit 854e389a03
2 changed files with 1 additions and 7 deletions

View File

@ -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
如设置了本地调试浏览器可自动接入或打开浏览器进程
"""

View File

@ -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],