소스 검색

Fix LoginIT submit click

In latest Nextcloud version the "submit" button does not have an ID, but we can use the type for selection

Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
Álvaro Brey Vilas 3 년 전
부모
커밋
85b5bf6875
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/src/androidTest/java/com/owncloud/android/ui/LoginIT.java

+ 1 - 1
app/src/androidTest/java/com/owncloud/android/ui/LoginIT.java

@@ -113,7 +113,7 @@ public class LoginIT extends AbstractIT {
 
         // click login
         onWebView()
-            .withElement(findElement(Locator.XPATH, "//input[@id='submit-form']"))
+            .withElement(findElement(Locator.XPATH, "//input[@type='submit']"))
             .perform(webClick());
 
         Thread.sleep(2000);