[python]'unknown error' when using http api 'equals'

Hi everyone,

I want to run this doc

image

The http api that get element is working nicely

>>> requests.get('http://localhost:4723/wd/hub/session/c6b678ed-47e3-4338-a4be-f67e89e00102/element/0c7499bb-f301-488e-92e8-a0e8d39e2d6b/text').text
'{"sessionId":"c6b678ed-47e3-4338-a4be-f67e89e00102","status":0,"value":"Auto Complete"}'
>>> requests.get('http://localhost:4723/wd/hub/session/c6b678ed-47e3-4338-a4be-f67e89e00102/element/1921489c-18d1-42b7-b1c3-26d1315c5afb/text').text
'{"sessionId":"c6b678ed-47e3-4338-a4be-f67e89e00102","status":0,"value":"Animation"}'
>>> requests.get('http://localhost:4723/wd/hub/session/c6b678ed-47e3-4338-a4be-f67e89e00102/element/fb4db483-aec3-48ee-a313-18b377d664c6/text').text
'{"sessionId":"c6b678ed-47e3-4338-a4be-f67e89e00102","status":0,"value":"Animation"}'

But, the requests for ‘equals’ responses the <500> and the message is following:

>>> requests.get('http://localhost:4723/wd/hub/session/c6b678ed-47e3-4338-a4be-f67e89e00102/element/fb4db483-aec3-48ee-a313-18b377d664c6/equals/1921489c-18d1-42b7-b1c3-26d1315c5afb').text
'{"value":{"error":"unknown error","message":"An unknown server-side error occurred while processing the command. Original error: Could not proxy. Proxy error: Could not proxy command to remote server. Original error: 404 - \\"\\"","stacktrace":"UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy. Proxy error: Could not proxy command to remote server. Original error: 404 - \\"\\"\\n
 at getResponseForW3CError (C:\\\\Users\\\\Testworks\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\appium\\\\node_modules\\\\appium-base-driver\\\\lib\\\\protocol\\\\errors.js:826:9)\\n    at asyncHandler (C:\\\\Users\\\\Testworks\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\appium\\\\node_modules\\\\appium-base-driver\\\\lib\\\\protocol\\\\protocol.js:447:37)"}}'

I don’t know any other way to check whether two elements are equal or not in python.

I want to get some help about resolving the error and get some information about the another way to do same thing - checking the elements are equals -, if it exists.

Thanks in advance,
Ben

I think there is a problem in the documentation. This method seems to be obsolete and is not present anymore in the W3C spec. Try to compare element attributes to make sure both items represent the same entity.

Oh… I understand. Thank you very much!