Closed lukeis closed 8 years ago
Reported by barancev
on 2011-10-13 08:35:52
Reported by berrada@google.com
on 2011-10-21 04:25:31
I have experienced this problem as well. Looking at the html content returned from the
get request, the exact Java exception is:
<h2>HTTP ERROR: 500</h2>
<p>Problem accessing /wd/hub/session. Reason:
<pre> java.lang.String cannot be cast to java.util.Map</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
Reported by jonathan.wylie
on 2011-11-16 15:27:47
Ok so the problem is not coming from the driver.get command but actually it is the initializing
of the driver itself.
It seems that it is expecting a map instance (as indicated by the exception) for the
desired_capabilities option, if you pass desired_capabilities={}, then it should work.
At least it worked for me.
Reported by jonathan.wylie
on 2011-11-16 16:34:48
If you do
from selenium import webdriver
android = webdriver.Remote(command_executor='http://localhost:8080/wd/hub', desired_capabilities=webdriver.DesiredCapabilities.ANDROID)
android.get("http://foo.bar")
it will work.
Reported by david.burns@theautomatedtester.co.uk
on 2011-11-16 16:43:25
WontFix
Reported by luke.semerau
on 2015-09-17 18:13:37
Originally reported on Google Code with ID 2359
Reported by
JeffreyRBarnes
on 2011-08-29 17:01:06