We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Traceback (most recent call last): File "<string>", line 20, in <module> File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\uiautomator2\xpath.py", line 447, in set_text self._parent._d.send_keys(text) File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\uiautomator2\__init__.py", line 602, in send_keys self.clipboard = text File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\uiautomator2\__init__.py", line 578, in clipboard self.set_clipboard(text) File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\uiautomator2\__init__.py", line 586, in set_clipboard self.jsonrpc.setClipboard(label, text) File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\uiautomator2\__init__.py", line 185, in __call__ return self.server.jsonrpc_call(self.method, params, http_timeout) File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\uiautomator2\core.py", line 270, in jsonrpc_call return _jsonrpc_call(self._dev, method, params, timeout, self._debug) File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\uiautomator2\core.py", line 153, in _jsonrpc_call raise RPCUnknownError(f"Unknown RPC error: {code} {message}", params, stacktrace) uiautomator2.exceptions.RPCUnknownError: ('Unknown RPC error: -32001 java.lang.RuntimeException', (None, '123444'), "java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()\n\tat android.os.Handler.<init>(Handler.java:203)\n\tat android.os.Handler.<init>(Handler.java:117)\n\tat android.content.ClipboardManager$2.<init>(ClipboardManager.java:84)\n\tat android.content.ClipboardManager.<init>(ClipboardManager.java:84)\n\tat android.app.SystemServiceRegistry$12.createService(SystemServiceRegistry.java:379)\n\tat android.app.SystemServiceRegistry$12.createService(SystemServiceRegistry.java:377)\n\tat android.app.SystemServiceRegistry$CachedServiceFetcher.getService(SystemServiceRegistry.java:1402)\n\tat android.app.SystemServiceRegistry.getSystemService(SystemServiceRegistry.java:1354)\n\tat android.app.ContextImpl.getSystemService(ContextImpl.java:1695)\n\tat com.wetest.uia2.stub.AutomatorServiceImpl.setClipboard(AutomatorServiceImpl.java:1651)\n\tat java.lang.reflect.Method.invoke(Native Method)\n\tat com.googlecode.jsonrpc4j.JsonRpcBasicServer.invoke(JsonRpcBasicServer.java:467)\n\tat com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleObject(JsonRpcBasicServer.java:352)\n\tat com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleJsonNodeRequest(JsonRpcBasicServer.java:283)\n\tat com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleRequest(JsonRpcBasicServer.java:251)\n\tat com.wetest.uia2.stub.AutomatorHttpServer.serve(AutomatorHttpServer.java:101)\n\tat fi.iki.elonen.NanoHTTPD.serve(NanoHTTPD.java:2244)\n\tat fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:945)\n\tat fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192)\n\tat java.lang.Thread.run(Thread.java:764)\n")
got that error while: d.xpath('//com.bytedance.ies.xelement.input.LynxInputView').set_text('123444') or d.send_keys('12344')
d.xpath('//com.bytedance.ies.xelement.input.LynxInputView').set_text('123444')
d.send_keys('12344')
The text was updated successfully, but these errors were encountered:
No branches or pull requests
got that error while:
d.xpath('//com.bytedance.ies.xelement.input.LynxInputView').set_text('123444')
or
d.send_keys('12344')
The text was updated successfully, but these errors were encountered: