Skip to content

Commit 7392efd

Browse files
authored
Merge branch 'master' into python3
2 parents e6754c8 + 4c1bae6 commit 7392efd

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-6
lines changed

appium/webdriver/extensions/search_context/android.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def find_element_by_android_data_matcher(
9898
def find_elements_by_android_data_matcher(
9999
self, name: Optional[str] = None, args: Optional[Any] = None, className: Optional[str] = None) -> List['WebElement']:
100100
"""Finds elements by [onData](https://medium.com/androiddevelopers/adapterviews-and-espresso-f4172aa853cf) in Android
101+
101102
It works with [Espresso Driver](https://github.com/appium/appium-espresso-driver).
102103
103104
Args:

test/functional/android/context_switching_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def test_actually_in_webview(self) -> None:
4444
el = self.driver.find_element_by_xpath("//h1[contains(., 'This is my way')]")
4545
assert el is not None
4646

47+
4748
def test_move_back_to_native_context(self) -> None:
4849
self._enter_webview()
4950
self.driver.switch_to.context(None)

test/functional/android/network_connection_tests.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
from appium.webdriver.connectiontype import ConnectionType
1919

20-
from ..test_helper import is_ci
2120
from .helper.test_helper import BaseTestCase
2221

2322

test/functional/android/search_context/find_by_accessibility_id_tests.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
BaseTestCase,
2020
wait_for_element
2121
)
22-
from test.functional.test_helper import is_ci
2322

2423

2524
class TestFindByAccessibilityID(BaseTestCase):
@@ -39,7 +38,7 @@ def test_element_find_single_element(self) -> None:
3938
wait_for_element(self.driver, MobileBy.ANDROID_UIAUTOMATOR, 'new UiSelector().text("Accessibility")').click()
4039
wait_for_element(self.driver, MobileBy.ANDROID_UIAUTOMATOR,
4140
'new UiSelector().text("Accessibility Node Querying")').click()
42-
el = wait_for_element(self.driver, MobileBy.CLASS_NAME, 'android.widget.ListView')
41+
el = wait_for_element(self.driver, MobileBy.ACCESSIBILITY_ID, 'Task Take out Trash')
4342

4443
sub_el = el.find_element_by_accessibility_id('Task Take out Trash')
4544
assert sub_el is not None

test/functional/android/search_context/find_by_image_tests.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414

1515
import base64
1616

17-
import pytest
1817
from selenium.common.exceptions import NoSuchElementException, TimeoutException
19-
from selenium.webdriver.common.by import By
2018
from selenium.webdriver.support import expected_conditions as EC
2119
from selenium.webdriver.support.ui import WebDriverWait
2220

@@ -43,7 +41,6 @@ def teardown_method(self) -> None:
4341

4442
def test_find_based_on_image_template(self) -> None:
4543
image_path = desired_capabilities.PATH('file/find_by_image_success.png')
46-
print(image_path)
4744
with open(image_path, 'rb') as png_file:
4845
b64_data = base64.b64encode(png_file.read()).decode('UTF-8')
4946

0 commit comments

Comments
 (0)