Skip to content

Commit 7ca9425

Browse files
authored
chore: inherit CanFindElements (#1148)
1 parent d43a190 commit 7ca9425

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

appium/webdriver/webdriver.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
from appium.common.logger import logger
3030
from appium.options.common.base import AppiumOptions
31+
from appium.protocols.webdriver.can_find_elements import CanFindElements
3132
from appium.webdriver.common.appiumby import AppiumBy
3233

3334
from .appium_connection import AppiumConnection
@@ -237,6 +238,7 @@ class WebDriver(
237238
Settings,
238239
Sms,
239240
SystemBars,
241+
CanFindElements,
240242
):
241243
def __init__(
242244
self,

appium/webdriver/webelement.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@
1919
from selenium.webdriver.remote.webelement import WebElement as SeleniumWebElement
2020
from typing_extensions import Self
2121

22+
from appium.protocols.webdriver.can_find_elements import CanFindElements
23+
2224
from .mobilecommand import MobileCommand as Command
2325

2426

25-
class WebElement(SeleniumWebElement):
27+
class WebElement(SeleniumWebElement, CanFindElements):
2628
_execute: Callable
2729
_id: str
2830

0 commit comments

Comments
 (0)