File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ def __init__(self) -> None:
6969 # FIXME: https://github.com/SeleniumHQ/selenium/issues/10755
7070 self ._ignore_local_proxy = False
7171
72- def set_capability (self : T , name : str , value : Any ) -> T :
72+ def set_capability (self : T , name : str , value : Any ) -> T : # type: ignore[override]
7373 w3c_name = name if name in self .W3C_CAPABILITY_NAMES or ':' in name else f'{ APPIUM_PREFIX } { name } '
7474 if value is None :
7575 if w3c_name in self ._caps :
Original file line number Diff line number Diff line change 2828
2929from appium .common .logger import logger
3030from appium .options .common .base import AppiumOptions
31- from appium .protocols .webdriver .can_find_elements import CanFindElements
3231from appium .webdriver .common .appiumby import AppiumBy
3332
3433from .appium_connection import AppiumConnection
@@ -238,7 +237,6 @@ class WebDriver(
238237 Settings ,
239238 Sms ,
240239 SystemBars ,
241- CanFindElements ,
242240):
243241 def __init__ (
244242 self ,
Original file line number Diff line number Diff line change 1919from selenium .webdriver .remote .webelement import WebElement as SeleniumWebElement
2020from typing_extensions import Self
2121
22- from appium .protocols .webdriver .can_find_elements import CanFindElements
23-
2422from .mobilecommand import MobileCommand as Command
2523
2624
27- class WebElement (SeleniumWebElement , CanFindElements ):
25+ class WebElement (SeleniumWebElement ):
2826 _execute : Callable
2927 _id : str
3028
31- def get_attribute (self , name : str ) -> Optional [Union [str , Dict ]]:
29+ def get_attribute (self , name : str ) -> Optional [Union [str , Dict ]]: # type: ignore[override]
3230 """Gets the given attribute or property of the element.
3331
3432 Override for Appium
@@ -80,7 +78,7 @@ def is_displayed(self) -> bool:
8078 """
8179 return self ._execute (Command .IS_ELEMENT_DISPLAYED )['value' ]
8280
83- def clear (self ) -> Self :
81+ def clear (self ) -> Self : # type: ignore[override]
8482 """Clears text.
8583
8684 Override for Appium
You can’t perform that action at this time.
0 commit comments