{"action":"created","issue":{"url":"https://api.github.com/repos/googlesamples/android-testing/issues/61","repository_url":"https://api.github.com/repos/googlesamples/android-testing","labels_url":"https://api.github.com/repos/googlesamples/android-testing/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/googlesamples/android-testing/issues/61/comments","events_url":"https://api.github.com/repos/googlesamples/android-testing/issues/61/events","html_url":"https://github.com/googlesamples/android-testing/issues/61","id":111324837,"number":61,"title":"onWebView Element is not currently interactable and may not be manipulated","user":{"login":"neal1231990511","id":15118103,"avatar_url":"https://avatars1.githubusercontent.com/u/15118103?v=4","gravatar_id":"","url":"https://api.github.com/users/neal1231990511","html_url":"https://github.com/neal1231990511","followers_url":"https://api.github.com/users/neal1231990511/followers","following_url":"https://api.github.com/users/neal1231990511/following{/other_user}","gists_url":"https://api.github.com/users/neal1231990511/gists{/gist_id}","starred_url":"https://api.github.com/users/neal1231990511/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neal1231990511/subscriptions","organizations_url":"https://api.github.com/users/neal1231990511/orgs","repos_url":"https://api.github.com/users/neal1231990511/repos","events_url":"https://api.github.com/users/neal1231990511/events{/privacy}","received_events_url":"https://api.github.com/users/neal1231990511/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-10-14T05:11:40Z","updated_at":"2017-08-30T14:08:15Z","closed_at":"2015-10-23T13:39:46Z","author_association":"NONE","body":"when I use espresso onWebView to click html button it will fail.\n\nSome tests WebView components of layout xml :\n\nPASS   :    android:layout_width=\"wrap_content\"\n                  android:layout_height=\"match_parent\"\n                  android:id=\"@+id/webView\"\n\nPASS   :    android:layout_width=\"wrap_content\"\n                  android:layout_height=\"10dp\"\n                  android:id=\"@+id/webView\"\n\nPASS   :    android:layout_width=\"match_parent\"\n                  android:layout_height=\"match_parent\"\n                  android:id=\"@+id/webView\"\n\nFAIL    :     android:layout_width=\"match_parent\"\n                  android:layout_height=\"wrap_content\"\n                  android:id=\"@+id/webView\"\n\nFAIL    :     android:layout_width=\"wrap_content\"\n                  android:layout_height=\"wrap_content\"\n                  android:id=\"@+id/webView\"\n\nFAIL    :     android:layout_width=\"100dp\"\n                  android:layout_height=\"wrap_content\"\n                  android:id=\"@+id/webView\"\n\nI found if the layout_height of WebView is \" wrap_content \" will run fail and got error message.\n\nerror message:\njava.lang.RuntimeException: java.lang.RuntimeException: Error in evaluationEvaluation: status: 12 value: {message=Element is not currently interactable and may not be manipulated} hasMessage: true message: Element is not currently interactable and may not be manipulated\nat android.support.test.espresso.web.sugar.Web$WebInteraction$ExceptionPropagator.<init>(Web.java:323)\nat android.support.test.espresso.web.sugar.Web$WebInteraction.doEval(Web.java:292)\nat android.support.test.espresso.web.sugar.Web$WebInteraction.perform(Web.java:259)\nat com.example.cake.cake_esp_test.WebActivityTest.enter_email_and_password_submit(WebActivityTest.java:54)\nat java.lang.reflect.Method.invoke(Native Method)\nat java.lang.reflect.Method.invoke(Method.java:372)\nat org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)\nat org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)\nat org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)\nat org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)\nat android.support.test.internal.statement.UiThreadStatement.evaluate(UiThreadStatement.java:55)\nat android.support.test.rule.ActivityTestRule$ActivityStatement.evaluate(ActivityTestRule.java:257)\nat org.junit.rules.RunRules.evaluate(RunRules.java:20)\nat org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)\nat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)\nat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)\nat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\nat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\nat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\nat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\nat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\nat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\nat org.junit.runners.Suite.runChild(Suite.java:128)\nat org.junit.runners.Suite.runChild(Suite.java:27)\nat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\nat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\nat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\nat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\nat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\nat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\nat org.junit.runner.JUnitCore.run(JUnitCore.java:137)\nat org.junit.runner.JUnitCore.run(JUnitCore.java:115)\nat android.support.test.internal.runner.TestExecutor.execute(TestExecutor.java:54)\nat android.support.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:240)\nat android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1853)\nCaused by: java.lang.RuntimeException: Error in evaluationEvaluation: status: 12 value: {message=Element is not currently interactable and may not be manipulated} hasMessage: true message: Element is not currently interactable and may not be manipulated\nat android.support.test.espresso.web.model.SimpleAtom.handleBadEvaluation(SimpleAtom.java:142)\nat android.support.test.espresso.web.model.SimpleAtom.transform(SimpleAtom.java:76)\nat android.support.test.espresso.web.model.SimpleAtom.transform(SimpleAtom.java:30)\nat android.support.test.espresso.web.action.AtomAction$2.apply(AtomAction.java:136)\nat android.support.test.espresso.web.action.AtomAction$2.apply(AtomAction.java:133)\nat android.support.test.espresso.web.deps.guava.util.concurrent.Futures$2.apply(Futures.java:760)\nat android.support.test.espresso.web.deps.guava.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:906)\nat android.support.test.espresso.web.deps.guava.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:457)\nat android.support.test.espresso.web.deps.guava.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156)\nat android.support.test.espresso.web.deps.guava.util.concurrent.ExecutionList.execute(ExecutionList.java:145)\nat android.support.test.espresso.web.deps.guava.util.concurrent.AbstractFuture.set(AbstractFuture.java:185)\nat android.support.test.espresso.web.deps.guava.util.concurrent.SettableFuture.set(SettableFuture.java:53)\nat android.support.test.espresso.web.action.AtomAction$1.run(AtomAction.java:117)\nat android.support.test.espresso.web.deps.guava.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:457)\nat android.support.test.espresso.web.deps.guava.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156)\nat android.support.test.espresso.web.deps.guava.util.concurrent.ExecutionList.execute(ExecutionList.java:145)\nat android.support.test.espresso.web.deps.guava.util.concurrent.AbstractFuture.set(AbstractFuture.java:185)\nat android.support.test.espresso.web.deps.guava.util.concurrent.Futures$ChainingListenableFuture$1.run(Futures.java:918)\nat android.support.test.espresso.web.deps.guava.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:457)\nat android.support.test.espresso.web.deps.guava.util.concurrent.Futures$ImmediateFuture.addListener(Futures.java:106)\nat android.support.test.espresso.web.deps.guava.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:914)\nat android.support.test.espresso.web.deps.guava.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:457)\nat android.support.test.espresso.web.deps.guava.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156)\nat android.support.test.espresso.web.deps.guava.util.concurrent.ExecutionList.execute(ExecutionList.java:145)\nat android.support.test.espresso.web.deps.guava.util.concurrent.AbstractFuture.set(AbstractFuture.java:185)\nat android.support.test.espresso.web.deps.guava.util.concurrent.Futures$ChainingListenableFuture$1.run(Futures.java:918)\nat android.support.test.espresso.web.deps.guava.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:457)\nat android.support.test.espresso.web.deps.guava.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156)\nat android.support.test.espresso.web.deps.guava.util.concurrent.ExecutionList.execute(ExecutionList.java:145)\nat android.support.test.espresso.web.deps.guava.util.concurrent.AbstractFuture.set(AbstractFuture.java:185)\nat android.support.test.espresso.web.action.JavascriptEvaluation$ValueCallbackFuture.onReceiveValue(JavascriptEvaluation.java:429)\nat com.android.org.chromium.android_webview.AwContents$5.handleJavaScriptResult(AwContents.java:1738)\nat com.android.org.chromium.content.browser.webcontents.WebContentsImpl.onEvaluateJavaScriptResult(WebContentsImpl.java:227)\nat com.android.org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)\nat com.android.org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53)\nat android.os.Handler.dispatchMessage(Handler.java:102)\nat android.os.Looper.loop(Looper.java:135)\nat android.app.ActivityThread.main(ActivityThread.java:5257)\nat java.lang.reflect.Method.invoke(Native Method)\nat java.lang.reflect.Method.invoke(Method.java:372)\nat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)\nat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)\n"},"comment":{"url":"https://api.github.com/repos/googlesamples/android-testing/issues/comments/326001738","html_url":"https://github.com/googlesamples/android-testing/issues/61#issuecomment-326001738","issue_url":"https://api.github.com/repos/googlesamples/android-testing/issues/61","id":326001738,"user":{"login":"nabinkhadka","id":6050613,"avatar_url":"https://avatars0.githubusercontent.com/u/6050613?v=4","gravatar_id":"","url":"https://api.github.com/users/nabinkhadka","html_url":"https://github.com/nabinkhadka","followers_url":"https://api.github.com/users/nabinkhadka/followers","following_url":"https://api.github.com/users/nabinkhadka/following{/other_user}","gists_url":"https://api.github.com/users/nabinkhadka/gists{/gist_id}","starred_url":"https://api.github.com/users/nabinkhadka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nabinkhadka/subscriptions","organizations_url":"https://api.github.com/users/nabinkhadka/orgs","repos_url":"https://api.github.com/users/nabinkhadka/repos","events_url":"https://api.github.com/users/nabinkhadka/events{/privacy}","received_events_url":"https://api.github.com/users/nabinkhadka/received_events","type":"User","site_admin":false},"created_at":"2017-08-30T14:08:15Z","updated_at":"2017-08-30T14:08:15Z","author_association":"NONE","body":"Mine worked when I set my webview's height to match_parent. Thank you 👍 "}}
{"actor":{"display_login":"nabinkhadka"}}