mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
errors移动到位置
This commit is contained in:
parent
29bbb7ea4c
commit
28330ac49c
@ -8,9 +8,9 @@ from re import sub
|
|||||||
from urllib.parse import quote
|
from urllib.parse import quote
|
||||||
|
|
||||||
from .common.constants import Settings, NoneElement
|
from .common.constants import Settings, NoneElement
|
||||||
from .common.errors import ElementNotFoundError
|
|
||||||
from .common.web import format_html
|
|
||||||
from .common.locator import get_loc
|
from .common.locator import get_loc
|
||||||
|
from .common.web import format_html
|
||||||
|
from .errors import ElementNotFoundError
|
||||||
|
|
||||||
|
|
||||||
class BaseParser(object):
|
class BaseParser(object):
|
||||||
|
@ -15,11 +15,11 @@ from .chromium_driver import ChromiumDriver
|
|||||||
from .chromium_element import ChromiumWaiter, ChromiumScroll, ChromiumElement, run_js, make_chromium_ele, \
|
from .chromium_element import ChromiumWaiter, ChromiumScroll, ChromiumElement, run_js, make_chromium_ele, \
|
||||||
ChromiumElementWaiter
|
ChromiumElementWaiter
|
||||||
from .common.constants import HANDLE_ALERT_METHOD, ERROR, NoneElement
|
from .common.constants import HANDLE_ALERT_METHOD, ERROR, NoneElement
|
||||||
from .common.errors import ContextLossError, ElementLossError, AlertExistsError, CallMethodError, TabClosedError, \
|
|
||||||
NoRectError
|
|
||||||
from .common.locator import get_loc
|
from .common.locator import get_loc
|
||||||
from .common.tools import get_usable_path
|
from .common.tools import get_usable_path
|
||||||
from .common.web import cookies_to_tuple
|
from .common.web import cookies_to_tuple
|
||||||
|
from .errors import ContextLossError, ElementLossError, AlertExistsError, CallMethodError, TabClosedError, \
|
||||||
|
NoRectError
|
||||||
from .session_element import make_session_ele
|
from .session_element import make_session_ele
|
||||||
|
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ from threading import Thread, Event
|
|||||||
from websocket import WebSocketTimeoutException, WebSocketException, WebSocketConnectionClosedException, \
|
from websocket import WebSocketTimeoutException, WebSocketException, WebSocketConnectionClosedException, \
|
||||||
create_connection
|
create_connection
|
||||||
|
|
||||||
from .common.errors import CallMethodError
|
from .errors import CallMethodError
|
||||||
|
|
||||||
|
|
||||||
class GenericAttr(object):
|
class GenericAttr(object):
|
||||||
|
@ -11,11 +11,11 @@ from warnings import warn
|
|||||||
|
|
||||||
from .base import DrissionElement, BaseElement
|
from .base import DrissionElement, BaseElement
|
||||||
from .common.constants import FRAME_ELEMENT, NoneElement, Settings
|
from .common.constants import FRAME_ELEMENT, NoneElement, Settings
|
||||||
from .common.errors import ContextLossError, ElementLossError, JavaScriptError, NoRectError, ElementNotFoundError, \
|
|
||||||
CallMethodError
|
|
||||||
from .common.keys import keys_to_typing, keyDescriptionForString, keyDefinitions
|
from .common.keys import keys_to_typing, keyDescriptionForString, keyDefinitions
|
||||||
from .common.locator import get_loc
|
from .common.locator import get_loc
|
||||||
from .common.web import make_absolute_link, get_ele_txt, format_html, is_js_func, location_in_viewport, offset_scroll
|
from .common.web import make_absolute_link, get_ele_txt, format_html, is_js_func, location_in_viewport, offset_scroll
|
||||||
|
from .errors import ContextLossError, ElementLossError, JavaScriptError, NoRectError, ElementNotFoundError, \
|
||||||
|
CallMethodError
|
||||||
from .session_element import make_session_ele
|
from .session_element import make_session_ele
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,9 +15,9 @@ from .chromium_base import ChromiumBase, Timeout, ChromiumBaseSetter
|
|||||||
from .chromium_driver import ChromiumDriver
|
from .chromium_driver import ChromiumDriver
|
||||||
from .chromium_tab import ChromiumTab
|
from .chromium_tab import ChromiumTab
|
||||||
from .common.browser import connect_browser
|
from .common.browser import connect_browser
|
||||||
from .common.errors import CallMethodError
|
|
||||||
from .common.web import set_session_cookies
|
from .common.web import set_session_cookies
|
||||||
from .configs.chromium_options import ChromiumOptions
|
from .configs.chromium_options import ChromiumOptions
|
||||||
|
from .errors import CallMethodError
|
||||||
from .session_page import DownloadSetter
|
from .session_page import DownloadSetter
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
# -*- coding:utf-8 -*-
|
# -*- coding:utf-8 -*-
|
||||||
from .errors import ElementNotFoundError
|
"""
|
||||||
|
@Author : g1879
|
||||||
|
@Contact : g1879@qq.com
|
||||||
|
"""
|
||||||
|
from DrissionPage.errors import ElementNotFoundError
|
||||||
|
|
||||||
HANDLE_ALERT_METHOD = 'Page.handleJavaScriptDialog'
|
HANDLE_ALERT_METHOD = 'Page.handleJavaScriptDialog'
|
||||||
FRAME_ELEMENT = ('iframe', 'frame')
|
FRAME_ELEMENT = ('iframe', 'frame')
|
||||||
|
@ -13,9 +13,9 @@ from .base import BasePage
|
|||||||
from .chromium_base import ChromiumBase, Timeout
|
from .chromium_base import ChromiumBase, Timeout
|
||||||
from .chromium_driver import ChromiumDriver
|
from .chromium_driver import ChromiumDriver
|
||||||
from .chromium_page import ChromiumPage, ChromiumDownloadSetter, ChromiumPageSetter
|
from .chromium_page import ChromiumPage, ChromiumDownloadSetter, ChromiumPageSetter
|
||||||
from .common.errors import CallMethodError
|
|
||||||
from .configs.chromium_options import ChromiumOptions
|
from .configs.chromium_options import ChromiumOptions
|
||||||
from .configs.session_options import SessionOptions
|
from .configs.session_options import SessionOptions
|
||||||
|
from .errors import CallMethodError
|
||||||
from .session_page import SessionPage, SessionPageSetter
|
from .session_page import SessionPage, SessionPageSetter
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user