ChromiumTab增加close()方法;完善common注释

This commit is contained in:
g1879 2023-05-12 22:09:27 +08:00
parent ae3abe79fe
commit bac29f7564
3 changed files with 11 additions and 7 deletions

View File

@ -28,6 +28,10 @@ class ChromiumTab(ChromiumBase):
self.retry_interval = self.page.retry_interval
self._page_load_strategy = self.page.page_load_strategy
def close(self):
"""关闭当前标签页"""
self.page.close_tabs(self.tab_id)
@property
def rect(self):
"""返回获取窗口坐标和大小的对象"""

View File

@ -24,6 +24,8 @@ class ChromiumTab(ChromiumBase):
def _set_runtime_settings(self) -> None: ...
def close(self) -> None: ...
@property
def rect(self) -> ChromiumTabRect: ...

View File

@ -1,9 +1,7 @@
# -*- coding:utf-8 -*-
from FlowViewer import Listener, RequestMan
from .session_element import make_session_ele as make_session_ele
from .session_element import make_session_ele
from .action_chains import ActionChains
from .commons.keys import Keys
from .commons.by import By
from .commons.constants import Settings
from .action_chains import ActionChains as ActionChains
from .commons.keys import Keys as Keys
from .commons.by import By as By
from .commons.constants import Settings as Settings