mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
修复sr获取子元素的问题
This commit is contained in:
parent
99029b4fe1
commit
79e0110956
@ -15,7 +15,7 @@ from selenium.webdriver.remote.webelement import WebElement
|
||||
from selenium.webdriver.support import expected_conditions as ec
|
||||
from selenium.webdriver.support.wait import WebDriverWait
|
||||
|
||||
from .base import DrissionElement
|
||||
from .base import DrissionElement, BaseElement
|
||||
from .common import str_to_loc, get_available_file_name, translate_loc, format_html
|
||||
|
||||
|
||||
@ -542,7 +542,7 @@ def execute_driver_find(page_or_ele,
|
||||
if mode not in ('single', 'all'):
|
||||
raise ValueError(f"Argument mode can only be 'single' or 'all', not '{mode}'.")
|
||||
|
||||
if isinstance(page_or_ele, DrissionElement):
|
||||
if isinstance(page_or_ele, BaseElement):
|
||||
page = page_or_ele.page
|
||||
driver = page_or_ele.inner_ele
|
||||
else: # 传入的是DriverPage对象
|
||||
|
2
setup.py
2
setup.py
@ -6,7 +6,7 @@ with open("README.md", "r", encoding='utf-8') as fh:
|
||||
|
||||
setup(
|
||||
name="DrissionPage",
|
||||
version="1.11.5",
|
||||
version="1.11.6",
|
||||
author="g1879",
|
||||
author_email="g1879@qq.com",
|
||||
description="A module that integrates selenium and requests session, encapsulates common page operations.",
|
||||
|
Loading…
x
Reference in New Issue
Block a user