Commit b17d281b authored by Tricia Crichton's avatar Tricia Crichton Committed by Commit Bot

[ChromeDriver] activate SetLocation command

Activate the SetLocation command in w3c mode. This is not part of the webdriver spec, but this is a valuable function for testing.

Bug: chromedriver:3180
Change-Id: If379b56891f5326b7a6bdf51ec6044d192d485c5
Fixed: 3180
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1881479Reviewed-by: default avatarJohn Chen <johnchen@chromium.org>
Commit-Queue: Tricia Crichton <triciac@chromium.org>
Cr-Commit-Position: refs/heads/master@{#709941}
parent f5886456
...@@ -617,17 +617,15 @@ HttpHandler::HttpHandler( ...@@ -617,17 +617,15 @@ HttpHandler::HttpHandler(
WrapToCommand("TouchFlick", base::BindRepeating(&ExecuteFlick), WrapToCommand("TouchFlick", base::BindRepeating(&ExecuteFlick),
false /*w3c_standard_command*/)), false /*w3c_standard_command*/)),
// No W3C equivalent. // No W3C equivalent, see .https://crbug.com/chromedriver/3180
CommandMapping(kGet, "session/:sessionId/location", CommandMapping(kGet, "session/:sessionId/location",
WrapToCommand("GetGeolocation", WrapToCommand("GetGeolocation",
base::BindRepeating(&ExecuteGetLocation), base::BindRepeating(&ExecuteGetLocation))),
false /*w3c_standard_command*/)),
// No W3C equivalent. // No W3C equivalent, see .https://crbug.com/chromedriver/3180
CommandMapping(kPost, "session/:sessionId/location", CommandMapping(kPost, "session/:sessionId/location",
WrapToCommand("SetGeolocation", WrapToCommand("SetGeolocation",
base::BindRepeating(&ExecuteSetLocation), base::BindRepeating(&ExecuteSetLocation))),
false /*w3c_standard_command*/)),
// No W3C equivalent. // No W3C equivalent.
CommandMapping(kGet, "session/:sessionId/local_storage", CommandMapping(kGet, "session/:sessionId/local_storage",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment