question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JsonRPCError: JsonRPC Error code: -32002, Message: UiSelector[TEXT=Phone]

See original GitHub issue

when I run this "d2(text=“Phone”).click() " to click the Phone icon in idle. it can launch the dial pad. but after the end of the script ,below exception throw

d2(text="Phone").click()

File “C:\Python27\lib\site-packages\uiautomator-0.1.32-py2.7.egg\uiautomator__init__.py”, line 79, in call return self.func(args, *kwargs) File "C:\Python27\lib\site-packages\uiautomator-0.1.32-py2.7.egg\uiautomator__init.py", line 1090, in click return self.jsonrpc.click(self.selector) File "C:\Python27\lib\site-packages\uiautomator-0.1.32-py2.7.egg\uiautomator__init_.py", line 445, in wrapper return _method_obj(args, *kwargs) File "C:\Python27\lib\site-packages\uiautomator-0.1.32-py2.7.egg\uiautomator__init.py", line 131, in call raise JsonRPCError(jsonresult[“error”][“code”], jsonresult[“error”][“message”]) JsonRPCError: JsonRPC Error code: -32002, Message: UiSelector[TEXT=Phone]

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cocoon-projectcommented, Jul 28, 2014

I met the same problem ( -32002 error)

button=device(descriptionContains='answer')
if button.exists:
    button.click()

the button.exists test pass but the click does not

have you managed to answer an incoming call with uiautomator ? it seems to be the problem for me , anything else just works fine thanks for your great job.

0reactions
Joycetclcommented, Dec 24, 2018

Any update on this issue? Facing similar issue with Android O

Read more comments on GitHub >

github_iconTop Results From Across the Web

Returning Auth Error code on a json-rpc web service
According to json-rpc documantation: The error codes from and including -32768 to -32000 are reserved for pre-defined errors.
Read more >
JSONRPC2Error (JSON-RPC 2.0 Base 1.38 API) - javadoc.io
This class is immutable. The protocol expects error objects to be structured like this: code An integer that indicates the error type. message...
Read more >
JSON-RPC 2.0 Specification
A Number that indicates the error type that occurred. This MUST be an integer. message: A String providing a short description of the...
Read more >
What are ETH-RPC Popular Errors? - NOWNodes
Ethereum JSON RPC per EIP-1474, which includes all JSON RPC 2.0 errors. The EIP-1474 errors are the following: Code, Message, Meaning, Category.
Read more >
JSON-RPC permission issue on 00.07.00 - Teltonika Community
00 version of the RUTX09 firmware and I have encountered an issue with JSON-RPC. A mwan3 request is replied by a permission error:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found