Path: blob/main/files/en-us/web/webdriver/errors/unknownmethod/index.md
6520 views
------{{QuickLinksWithSubpages("/en-US/docs/Web/WebDriver/Errors")}}
The unknown method error is a WebDriver error that occurs when the driver does not recognize the HTTP request method used for the endpoint.
WebDriver provides a largely REST-ish API and not all endpoints in this API has GET, POST, and DELETE methods. This error occurs when you try to call an endpoint with an HTTP request method it does not support.
Examples
The New Session command provides a POST request endpoint which lets you create new WebDriver sessions:
It also implements the DELETE method for ending a session:
But it does not, for example, provide a GET method, and this will consequently return an unknown method error: