{"action":"created","issue":{"url":"https://api.github.com/repos/AirtestProject/Poco-SDK/issues/7","repository_url":"https://api.github.com/repos/AirtestProject/Poco-SDK","labels_url":"https://api.github.com/repos/AirtestProject/Poco-SDK/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/AirtestProject/Poco-SDK/issues/7/comments","events_url":"https://api.github.com/repos/AirtestProject/Poco-SDK/issues/7/events","html_url":"https://github.com/AirtestProject/Poco-SDK/issues/7","id":313326694,"number":7,"title":"识别不到cocos2dx-lua 游戏中的UI元素","user":{"login":"sosocgx","id":929831,"avatar_url":"https://avatars1.githubusercontent.com/u/929831?v=4","gravatar_id":"","url":"https://api.github.com/users/sosocgx","html_url":"https://github.com/sosocgx","followers_url":"https://api.github.com/users/sosocgx/followers","following_url":"https://api.github.com/users/sosocgx/following{/other_user}","gists_url":"https://api.github.com/users/sosocgx/gists{/gist_id}","starred_url":"https://api.github.com/users/sosocgx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sosocgx/subscriptions","organizations_url":"https://api.github.com/users/sosocgx/orgs","repos_url":"https://api.github.com/users/sosocgx/repos","events_url":"https://api.github.com/users/sosocgx/events{/privacy}","received_events_url":"https://api.github.com/users/sosocgx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"adolli","id":8390109,"avatar_url":"https://avatars3.githubusercontent.com/u/8390109?v=4","gravatar_id":"","url":"https://api.github.com/users/adolli","html_url":"https://github.com/adolli","followers_url":"https://api.github.com/users/adolli/followers","following_url":"https://api.github.com/users/adolli/following{/other_user}","gists_url":"https://api.github.com/users/adolli/gists{/gist_id}","starred_url":"https://api.github.com/users/adolli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adolli/subscriptions","organizations_url":"https://api.github.com/users/adolli/orgs","repos_url":"https://api.github.com/users/adolli/repos","events_url":"https://api.github.com/users/adolli/events{/privacy}","received_events_url":"https://api.github.com/users/adolli/received_events","type":"User","site_admin":false},"assignees":[{"login":"adolli","id":8390109,"avatar_url":"https://avatars3.githubusercontent.com/u/8390109?v=4","gravatar_id":"","url":"https://api.github.com/users/adolli","html_url":"https://github.com/adolli","followers_url":"https://api.github.com/users/adolli/followers","following_url":"https://api.github.com/users/adolli/following{/other_user}","gists_url":"https://api.github.com/users/adolli/gists{/gist_id}","starred_url":"https://api.github.com/users/adolli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adolli/subscriptions","organizations_url":"https://api.github.com/users/adolli/orgs","repos_url":"https://api.github.com/users/adolli/repos","events_url":"https://api.github.com/users/adolli/events{/privacy}","received_events_url":"https://api.github.com/users/adolli/received_events","type":"User","site_admin":false}],"milestone":null,"comments":13,"created_at":"2018-04-11T13:34:57Z","updated_at":"2018-04-13T10:28:35Z","closed_at":null,"author_association":"NONE","body":"有一些问题请教：\r\n\r\n1.尝试集成了pocosdk之后，提示找不到version.\r\n在POCO_SDK_VERSION.lua硬写入 local VERSION = \"1.0.1\"--import('.POCO_SDK_VERSION')\r\n打包成功。\r\n2.集成以后如何确定是否集成成功？\r\n3.在Airtest IDE或者 PocoHierarchyViewer中， 都没有识别cocos2dx-lua的选项， 如何识别UI元素？"},"comment":{"url":"https://api.github.com/repos/AirtestProject/Poco-SDK/issues/comments/381094612","html_url":"https://github.com/AirtestProject/Poco-SDK/issues/7#issuecomment-381094612","issue_url":"https://api.github.com/repos/AirtestProject/Poco-SDK/issues/7","id":381094612,"user":{"login":"sosocgx","id":929831,"avatar_url":"https://avatars1.githubusercontent.com/u/929831?v=4","gravatar_id":"","url":"https://api.github.com/users/sosocgx","html_url":"https://github.com/sosocgx","followers_url":"https://api.github.com/users/sosocgx/followers","following_url":"https://api.github.com/users/sosocgx/following{/other_user}","gists_url":"https://api.github.com/users/sosocgx/gists{/gist_id}","starred_url":"https://api.github.com/users/sosocgx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sosocgx/subscriptions","organizations_url":"https://api.github.com/users/sosocgx/orgs","repos_url":"https://api.github.com/users/sosocgx/repos","events_url":"https://api.github.com/users/sosocgx/events{/privacy}","received_events_url":"https://api.github.com/users/sosocgx/received_events","type":"User","site_admin":false},"created_at":"2018-04-13T10:28:35Z","updated_at":"2018-04-13T10:28:35Z","author_association":"NONE","body":"重跑的报错：\r\n➜  ~ sudo python /Users/cgx/Desktop/test.py \r\n[06:26:09][DEBUG]<airtest.core.android.adb> /Library/Python/2.7/site-packages/airtest/core/android/static/adb/mac/adb devices\r\n[06:26:09][DEBUG]<airtest.core.android.adb> /Library/Python/2.7/site-packages/airtest/core/android/static/adb/mac/adb -s 3418b8e1 wait-for-device\r\n[06:26:09][DEBUG]<airtest.core.android.adb> /Library/Python/2.7/site-packages/airtest/core/android/static/adb/mac/adb -s 3418b8e1 shell getprop ro.build.version.sdk\r\n[06:26:09][DEBUG]<airtest.core.android.adb> /Library/Python/2.7/site-packages/airtest/core/android/static/adb/mac/adb -s 3418b8e1 forward --no-rebind tcp:19395 tcp:15004\r\nConnecting to host at: ('localhost', 19395)\r\n<poco.utils.simplerpc.transport.tcp.asynctcp.Client localhost:19395 at 0x116c62ef0> is connected\r\nwaiting for connection...0\r\nClosed <poco.utils.simplerpc.transport.tcp.asynctcp.Client localhost:19395 at 0x116c62ef0>\r\nTraceback (most recent call last):\r\n  File \"/Users/cgx/Desktop/test.py\", line 6, in <module>\r\n    poco(\"Button_bag\").click()\r\n  File \"/Library/Python/2.7/site-packages/poco/proxy.py\", line 21, in wrapped\r\n    return func(proxy, *args, **kwargs)\r\n  File \"/Library/Python/2.7/site-packages/poco/proxy.py\", line 280, in click\r\n    pos_in_percentage = self.get_position(focus)\r\n  File \"/Library/Python/2.7/site-packages/poco/proxy.py\", line 404, in get_position\r\n    pos = self.attr('pos')\r\n  File \"/Library/Python/2.7/site-packages/poco/proxy.py\", line 37, in wrapped\r\n    return func(self, *args, **kwargs)\r\n  File \"/Library/Python/2.7/site-packages/poco/proxy.py\", line 524, in attr\r\n    nodes = self._do_query(multiple=False)\r\n  File \"/Library/Python/2.7/site-packages/poco/proxy.py\", line 653, in _do_query\r\n    self._nodes = self.poco.agent.hierarchy.select(self.query, multiple)\r\n  File \"/Library/Python/2.7/site-packages/poco/freezeui/hierarchy.py\", line 89, in select\r\n    return self.selector.select(query, multiple)\r\n  File \"/Library/Python/2.7/site-packages/poco/sdk/Selector.py\", line 77, in select\r\n    return self.selectImpl(cond, multiple, self.getRoot(), 9999, True, True)\r\n  File \"/Library/Python/2.7/site-packages/poco/sdk/Selector.py\", line 70, in getRoot\r\n    return self.dumper.getRoot()\r\n  File \"/Library/Python/2.7/site-packages/poco/freezeui/hierarchy.py\", line 35, in getRoot\r\n    root = Node(self.dumpHierarchy())\r\n  File \"/Library/Python/2.7/site-packages/poco/utils/simplerpc/utils.py\", line 13, in new_func\r\n    ret, err = cb.wait(timeout=30)\r\n  File \"/Library/Python/2.7/site-packages/poco/utils/simplerpc/simplerpc.py\", line 75, in wait\r\n    raise RuntimeError(\"%s timeout error\" % self)\r\nRuntimeError: <poco.utils.simplerpc.simplerpc.Callback object at 0x116d715d0> timeout error\r\nexiting.......\r\n[06:26:39][DEBUG]<airtest.core.android.adb> /Library/Python/2.7/site-packages/airtest/core/android/static/adb/mac/adb -s 3418b8e1 forward --remove tcp:19395\r\n<LoopThread(simplerpc_update, started daemon 123145333555200)> finished"}}
{"actor":{"display_login":"sosocgx"}}