File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/test/java/io/appium/java_client/android Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,7 @@ task uiAutomationTest( type: Test ) {
213213 filter {
214214 includeTestsMatching ' io.appium.java_client.android.SettingTest'
215215 includeTestsMatching ' io.appium.java_client.android.ClipboardTest'
216+ includeTestsMatching ' io.appium.java_client.android.OpenNotificationsTest'
216217 includeTestsMatching ' *.AndroidAppStringsTest'
217218 includeTestsMatching ' *.pagefactory_tests.widget.tests.android.*'
218219 includeTestsMatching ' *.pagefactory_tests.widget.tests.AndroidPageObjectTest'
Original file line number Diff line number Diff line change 11package io .appium .java_client .android ;
22
33import static org .junit .jupiter .api .Assertions .assertNotEquals ;
4- import static org .openqa .selenium .By .id ;
4+ import static org .openqa .selenium .By .xpath ;
55
66import org .junit .jupiter .api .Test ;
77import org .openqa .selenium .WebElement ;
@@ -18,7 +18,7 @@ public void openNotification() {
1818 WebDriverWait wait = new WebDriverWait (driver , Duration .ofSeconds (20 ));
1919 assertNotEquals (0 , wait .until (input -> {
2020 List <WebElement > result = input
21- .findElements (id ( "com. android.systemui:id/settings_button " ));
21+ .findElements (xpath ( "// android.widget.Switch[contains(@content-desc, 'Wi-Fi')] " ));
2222
2323 return result .isEmpty () ? null : result ;
2424 }).size ());
You can’t perform that action at this time.
0 commit comments