{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium-uiautomator2-server/issues/40","repository_url":"https://api.github.com/repos/appium/appium-uiautomator2-server","labels_url":"https://api.github.com/repos/appium/appium-uiautomator2-server/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium-uiautomator2-server/issues/40/comments","events_url":"https://api.github.com/repos/appium/appium-uiautomator2-server/issues/40/events","html_url":"https://github.com/appium/appium-uiautomator2-server/issues/40","id":192740466,"number":40,"title":"click the same element twice or more, throw a uiautomator exception ","user":{"login":"wenshi11019","id":13760201,"avatar_url":"https://avatars.githubusercontent.com/u/13760201?v=3","gravatar_id":"","url":"https://api.github.com/users/wenshi11019","html_url":"https://github.com/wenshi11019","followers_url":"https://api.github.com/users/wenshi11019/followers","following_url":"https://api.github.com/users/wenshi11019/following{/other_user}","gists_url":"https://api.github.com/users/wenshi11019/gists{/gist_id}","starred_url":"https://api.github.com/users/wenshi11019/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wenshi11019/subscriptions","organizations_url":"https://api.github.com/users/wenshi11019/orgs","repos_url":"https://api.github.com/users/wenshi11019/repos","events_url":"https://api.github.com/users/wenshi11019/events{/privacy}","received_events_url":"https://api.github.com/users/wenshi11019/received_events","type":"User","site_admin":false},"labels":[{"id":337341317,"url":"https://api.github.com/repos/appium/appium-uiautomator2-server/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-01T02:42:45Z","updated_at":"2016-12-01T04:18:26Z","closed_at":null,"body":"when I click the same element twice or more, use two of the same click on the statements, or use the for statement, it will throw a exception.\r\n\r\nsometimes before i click the element, use `Thread.sleep(1000)`,it can run success, but sometime  it still throw the same exception\r\n\r\nappium version:1.6.1\r\nappium-uiautomator2-server version: 0.0.6\r\n\r\n` org.openqa.selenium.StaleElementReferenceException: android.support.test.uiautomator.StaleObjectException\r\n\tat android.support.test.uiautomator.UiObject2.getAccessibilityNodeInfo(UiObject2.java:629)\r\n\tat android.support.test.uiautomator.UiObject2.getVisibleBounds(UiObject2.java:210)\r\n\tat android.support.test.uiautomator.UiObject2.getVisibleCenter(UiObject2.java:251)\r\n\tat android.support.test.uiautomator.UiObject2.click(UiObject2.java:343)\r\n\tat io.appium.uiautomator2.model.UiObject2Element.click(UiObject2Element.java:42)\r\n\tat io.appium.uiautomator2.handler.Click.safeHandle(Click.java:39)\r\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:54)\r\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:201)\r\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:192)\r\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)\r\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)\r\n\tat io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:435)\r\n\tat io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)\r\n\tat io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)\r\n\tat io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:250)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)\r\n\tat io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\r\n\tat io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911)\r\n\tat io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)\r\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:611)\r\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:514)\r\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:468)\r\n\tat io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140)\r\n\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)\r\n\tat java.lang.Thread.run(Thread.java:818)`"},"comment":{"url":"https://api.github.com/repos/appium/appium-uiautomator2-server/issues/comments/264074911","html_url":"https://github.com/appium/appium-uiautomator2-server/issues/40#issuecomment-264074911","issue_url":"https://api.github.com/repos/appium/appium-uiautomator2-server/issues/40","id":264074911,"user":{"login":"sravanmedarapu","id":4507565,"avatar_url":"https://avatars.githubusercontent.com/u/4507565?v=3","gravatar_id":"","url":"https://api.github.com/users/sravanmedarapu","html_url":"https://github.com/sravanmedarapu","followers_url":"https://api.github.com/users/sravanmedarapu/followers","following_url":"https://api.github.com/users/sravanmedarapu/following{/other_user}","gists_url":"https://api.github.com/users/sravanmedarapu/gists{/gist_id}","starred_url":"https://api.github.com/users/sravanmedarapu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sravanmedarapu/subscriptions","organizations_url":"https://api.github.com/users/sravanmedarapu/orgs","repos_url":"https://api.github.com/users/sravanmedarapu/repos","events_url":"https://api.github.com/users/sravanmedarapu/events{/privacy}","received_events_url":"https://api.github.com/users/sravanmedarapu/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T04:18:26Z","updated_at":"2016-12-01T04:18:26Z","body":"Have you tried by setting implicit wait ?"}}
{"actor":{"display_login":"sravanmedarapu"}}