Skip to content

Commit e440727

Browse files
committed
more
1 parent a7ff7b7 commit e440727

File tree

2 files changed

+0
-97
lines changed

2 files changed

+0
-97
lines changed

appium/webdriver/webdriver.py

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -353,39 +353,6 @@ def get_status(self) -> Dict:
353353
"""
354354
return self.execute(Command.GET_STATUS)['value']
355355

356-
# def find_element(self, by: str = AppiumBy.ID, value: Union[str, Dict, None] = None) -> MobileWebElement:
357-
# """
358-
# Find an element given a AppiumBy strategy and locator
359-
360-
# Args:
361-
# by: The strategy
362-
# value: The locator
363-
364-
# Usage:
365-
# driver.find_element(by=AppiumBy.ACCESSIBILITY_ID, value='accessibility_id')
366-
367-
# Returns:
368-
# `appium.webdriver.webelement.WebElement`: The found element
369-
370-
# """
371-
# return self.execute(RemoteCommand.FIND_ELEMENT, {'using': by, 'value': value})['value']
372-
373-
# def find_elements(self, by: str = AppiumBy.ID, value: Union[str, Dict, None] = None) -> Union[List[MobileWebElement], List]:
374-
# """
375-
# Find elements given a AppiumBy strategy and locator
376-
377-
# Args:
378-
# by: The strategy
379-
# value: The locator
380-
381-
# Usage:
382-
# driver.find_elements(by=AppiumBy.ACCESSIBILITY_ID, value='accessibility_id')
383-
384-
# Returns:
385-
# :obj:`list` of :obj:`appium.webdriver.webelement.WebElement`: The found elements
386-
# """
387-
# return self.execute(RemoteCommand.FIND_ELEMENTS, {'using': by, 'value': value})['value'] or []
388-
389356
def create_web_element(self, element_id: Union[int, str]) -> MobileWebElement:
390357
"""Creates a web element with the specified element_id.
391358

appium/webdriver/webelement.py

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)