Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash on /enabled and /selected #353

Merged
merged 2 commits into from
Dec 14, 2018

Conversation

rajdeepv
Copy link
Collaborator

@rajdeepv rajdeepv commented Dec 14, 2018

Espresso server crashes on calling /enabled or /selected

--------- beginning of crash
12-14 16:23:31.349 16968 17441 E AndroidRuntime: FATAL EXCEPTION: NanoHttpd Request Processor (#33)
12-14 16:23:31.349 16968 17441 E AndroidRuntime: Process: com.bumble.app, PID: 16968
12-14 16:23:31.349 16968 17441 E AndroidRuntime: androidx.test.espresso.base.DefaultFailureHandler$AssertionFailedWithCauseError: 'is enabled' doesn't match the selected view.
12-14 16:23:31.349 16968 17441 E AndroidRuntime: Expected: is enabled
12-14 16:23:31.349 16968 17441 E AndroidRuntime:      Got: "LoadingButton{id=2131363209, res-name=registration_continue, visibility=VISIBLE, width=468, height=90, has-focus=false, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=false, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=android.widget.LinearLayout$LayoutParams@767097a, tag=null, root-is-layout-requested=false, has-input-connection=false, x=36.0, y=405.0, child-count=2}"
12-14 16:23:31.349 16968 17441 E AndroidRuntime:
12-14 16:23:31.349 16968 17441 E AndroidRuntime: 	at dalvik.system.VMStack.getThreadStackTrace(Native Method)
12-14 16:23:31.349 16968 17441 E AndroidRuntime: 	at java.lang.Thread.getStackTrace(Thread.java:1536)
12-14 16:23:31.349 16968 17441 E AndroidRuntime: 	at androidx.test.espresso.base.DefaultFailureHandler.getUserFriendlyError(DefaultFailureHandler.java:88)
12-14 16:23:31.349 16968 17441 E AndroidRuntime: 	at androidx.test.espresso.base.DefaultFailureHandler.handle(DefaultFailureHandler.java:51)
12-14 16:23:31.349 16968 17441 E AndroidRuntime: 	at androidx.test.espresso.ViewInteraction.waitForAndHandleInteractionResults(ViewInteraction.java:314)
12-14 16:23:31.349 16968 17441 E AndroidRuntime: 	at androidx.test.espresso.ViewInteraction.check(ViewInteraction.java:297)
12-14 16:23:31.349 16968 17441 E AndroidRuntime: 	at io.appium.espressoserver.lib.handlers.GetEnabled.handle(GetEnabled.java:35)
12-14 16:23:31.349 16968 17441 E AndroidRuntime: 	at io.appium.espressoserver.lib.handlers.GetEnabled.handle(GetEnabled.java:29)
12-14 16:23:31.349 16968 17441 E AndroidRuntime: 	at io.appium.espressoserver.lib.http.Router.route(Router.java:299)
12-14 16:23:31.349 16968 17441 E AndroidRuntime: 	at io.appium.espressoserver.lib.http.Server.serve(Server.java:68)
12-14 16:23:31.349 16968 17441 E AndroidRuntime: 	at fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:945)
12-14 16:23:31.349 16968 17441 E AndroidRuntime: 	at fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192)
12-14 16:23:31.349 16968 17441 E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:764)
12-14 16:23:31.349 16968 17441 E AndroidRuntime: Caused by: junit.framework.AssertionFailedError: 'is enabled' doesn't match the selected view.
12-14 16:23:31.349 16968 17441 E AndroidRuntime: Expected: is enabled
12-14 16:23:31.349 16968 17441 E AndroidRuntime:      Got: "LoadingButton{id=2131363209, res-name=registration_continue, visibility=VISIBLE, width=468, height=90, has-focus=false, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=false, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=android.widget.LinearLayout$LayoutParams@767097a, tag=null, root-is-layout-requested=false, has-input-connection=false, x=36.0, y=405.0, child-count=2}"

@mykola-mokhnach mykola-mokhnach merged commit 94bece3 into appium:master Dec 14, 2018
@rajdeepv rajdeepv deleted the fix_crash_enabled branch December 14, 2018 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants