@@ -78,70 +78,6 @@ def is_displayed(self) -> bool:
7878 """
7979 return self ._execute (Command .IS_ELEMENT_DISPLAYED )['value' ]
8080
81- # def find_element(self, by: str = AppiumBy.ID, value: Union[str, Dict, None] = None) -> 'WebElement':
82- # """Find an element given a AppiumBy strategy and locator
83-
84- # Override for Appium
85-
86- # Prefer the find_element_by_* methods when possible.
87-
88- # Args:
89- # by: The strategy
90- # value: The locator
91-
92- # Usage:
93- # element = element.find_element(AppiumBy.ID, 'foo')
94-
95- # Returns:
96- # `appium.webdriver.webelement.WebElement`
97- # """
98- # # We prefer to patch locators in the client code
99- # # Checking current context every time a locator is accessed could significantly slow down tests
100- # # Check https://github.com/appium/python-client/pull/724 before submitting any issue
101- # # if by == By.ID:
102- # # by = By.CSS_SELECTOR
103- # # value = '[id="%s"]' % value
104- # # elif by == By.TAG_NAME:
105- # # by = By.CSS_SELECTOR
106- # # elif by == By.CLASS_NAME:
107- # # by = By.CSS_SELECTOR
108- # # value = ".%s" % value
109- # # elif by == By.NAME:
110- # # by = By.CSS_SELECTOR
111- # # value = '[name="%s"]' % value
112-
113- # return self._execute(RemoteCommand.FIND_CHILD_ELEMENT, {'using': by, 'value': value})['value']
114-
115- # def find_elements(self, by: str = AppiumBy.ID, value: Union[str, Dict, None] = None) -> List['WebElement']:
116- # """Find elements given a AppiumBy strategy and locator
117-
118- # Args:
119- # by: The strategy
120- # value: The locator
121-
122- # Usage:
123- # element = element.find_elements(AppiumBy.CLASS_NAME, 'foo')
124-
125- # Returns:
126- # :obj:`list` of :obj:`appium.webdriver.webelement.WebElement`
127- # """
128- # # We prefer to patch locators in the client code
129- # # Checking current context every time a locator is accessed could significantly slow down tests
130- # # Check https://github.com/appium/python-client/pull/724 before submitting any issue
131- # # if by == By.ID:
132- # # by = By.CSS_SELECTOR
133- # # value = '[id="%s"]' % value
134- # # elif by == By.TAG_NAME:
135- # # by = By.CSS_SELECTOR
136- # # elif by == By.CLASS_NAME:
137- # # by = By.CSS_SELECTOR
138- # # value = ".%s" % value
139- # # elif by == By.NAME:
140- # # by = By.CSS_SELECTOR
141- # # value = '[name="%s"]' % value
142-
143- # return self._execute(RemoteCommand.FIND_CHILD_ELEMENTS, {'using': by, 'value': value})['value']
144-
14581 def clear (self ) -> Self :
14682 """Clears text.
14783
0 commit comments