| Index: chrome/test/webdriver/commands/find_element_commands.cc
|
| diff --git a/chrome/test/webdriver/commands/find_element_commands.cc b/chrome/test/webdriver/commands/find_element_commands.cc
|
| index 94d82c8b9e3d241bb3bef1e1fcc5f987c1c82c98..16f245400d60b61efb047320109bdcb9b3ca0272 100644
|
| --- a/chrome/test/webdriver/commands/find_element_commands.cc
|
| +++ b/chrome/test/webdriver/commands/find_element_commands.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -17,6 +17,15 @@
|
|
|
| namespace webdriver {
|
|
|
| +FindElementCommand::FindElementCommand(
|
| + const std::vector<std::string>& path_segments,
|
| + const DictionaryValue* const parameters,
|
| + const bool find_one_element)
|
| + : WebDriverCommand(path_segments, parameters),
|
| + find_one_element_(find_one_element) {}
|
| +
|
| +FindElementCommand::~FindElementCommand() {}
|
| +
|
| bool FindElementCommand::Init(Response* const response) {
|
| if (!WebDriverCommand::Init(response)) {
|
| SET_WEBDRIVER_ERROR(response, "Failure on Init for find element",
|
| @@ -49,6 +58,10 @@ bool FindElementCommand::Init(Response* const response) {
|
| return true;
|
| }
|
|
|
| +bool FindElementCommand::DoesPost() {
|
| + return true;
|
| +}
|
| +
|
| void FindElementCommand::ExecutePost(Response* const response) {
|
| scoped_ptr<ListValue> args(new ListValue());
|
| DictionaryValue* locator = new DictionaryValue();
|
| @@ -108,5 +121,9 @@ void FindElementCommand::ExecutePost(Response* const response) {
|
| response->set_status(error);
|
| }
|
|
|
| +bool FindElementCommand::RequiresValidTab() {
|
| + return false;
|
| +}
|
| +
|
| } // namespace webdriver
|
|
|
|
|