When trying to run a basic Hello World kind of test with Appium and python the following error happened:
WebDriverException: Message: That URL did not map to a valid JSONWP resource
Looking further I found that it happened when the web driver was initialized:
self.driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
So I typed in http://localhost:4723/wd/hub to the browser and got
That URL did not map to a valid JSONWP resource
I googled, came across a QA here on stackoverflow but it doesn't solve it. I also typed in http://localhost:4723/wd/hub/status
{
status: 0,
value: {
build: {
version: "1.4.11",
revision: "8cf8311f00e59a2b10fde1834fcf6d5ace6fbcd0"
}
}
}
And also wd/hub/session and got
{
status: 13,
value: "ERROR running Appium command: Cannot read property 'capabilities' of null"
}
Sadly there are only a few google results for any of these errors and those results don't help to solve the problem. So if you know how to make them go away, please help.