diff options
| author | jmikhail@google.com <jmikhail@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-23 01:37:24 +0000 |
|---|---|---|
| committer | jmikhail@google.com <jmikhail@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-23 01:37:24 +0000 |
| commit | fb6a061d07fe4de370d105b72b1d9b1478807f0a (patch) | |
| tree | 53b1d4ee27e8d729009fdc095ee6d486cb29b7ca /chrome/test/webdriver/commands/find_element_commands.h | |
| parent | ca59d8a58b9452331aa8e1a2d5152c62604d5711 (diff) | |
| download | chromium_src-fb6a061d07fe4de370d105b72b1d9b1478807f0a.zip chromium_src-fb6a061d07fe4de370d105b72b1d9b1478807f0a.tar.gz chromium_src-fb6a061d07fe4de370d105b72b1d9b1478807f0a.tar.bz2 | |
Revert 70015 - Implemnts the commands in webdriver to preform searching of elements on a page.
/session/:sessionId/timeouts/implicit_wait
/session/:sessionId/element
/session/:sessionId/elements
/session/:sessionId/element/:id/element
/session/:sessionId/element/:id/elements
BUG=none
TEST=webdriver_remote_tests.py
Review URL: http://codereview.chromium.org/3643002
TBR=jmikhail@google.com
Review URL: http://codereview.chromium.org/5959005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70017 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/webdriver/commands/find_element_commands.h')
| -rw-r--r-- | chrome/test/webdriver/commands/find_element_commands.h | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/chrome/test/webdriver/commands/find_element_commands.h b/chrome/test/webdriver/commands/find_element_commands.h deleted file mode 100644 index cc45d10..0000000 --- a/chrome/test/webdriver/commands/find_element_commands.h +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) 2010 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. - -#ifndef CHROME_TEST_WEBDRIVER_COMMANDS_FIND_ELEMENT_COMMANDS_H_ -#define CHROME_TEST_WEBDRIVER_COMMANDS_FIND_ELEMENT_COMMANDS_H_ - -#include <string> -#include <vector> - -#include "chrome/test/webdriver/commands/command.h" -#include "chrome/test/webdriver/commands/webdriver_command.h" - -namespace webdriver { - -// Base class for searching a page, this class can find either a single -// webelement or return multiple matches. -class FindElementCommand : public WebDriverCommand { - public: - 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) {} - virtual ~FindElementCommand() {} - - virtual bool Init(Response* const response); - - virtual bool DoesPost() { return true; } - virtual void ExecutePost(Response* const response); - - private: - virtual bool RequiresValidTab() { return false; } - const bool find_one_element_; - std::string root_element_id_; - std::string use_; - std::string value_; - - DISALLOW_COPY_AND_ASSIGN(FindElementCommand); -}; - -// Search for an element on the page, starting from the document root. -// The located element will be returned as a WebElement JSON object. See: -// http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/element -class FindOneElementCommand : public FindElementCommand { - public: - FindOneElementCommand(const std::vector<std::string>& path_segments, - const DictionaryValue* const parameters) - : FindElementCommand(path_segments, parameters, true) {} - virtual ~FindOneElementCommand() {} - - private: - DISALLOW_COPY_AND_ASSIGN(FindOneElementCommand); -}; - -// Search for multiple elements on the page, starting from the identified -// element. The located elements will be returned as a WebElement JSON -// objects. See: -// http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/element/:id/elements -class FindManyElementsCommand : public FindElementCommand { - public: - FindManyElementsCommand(const std::vector<std::string>& path_segments, - const DictionaryValue* const parameters) - : FindElementCommand(path_segments, parameters, false) {} - virtual ~FindManyElementsCommand() {} - - private: - DISALLOW_COPY_AND_ASSIGN(FindManyElementsCommand); -}; - -} // namespace webdriver - -#endif // CHROME_TEST_WEBDRIVER_COMMANDS_FIND_ELEMENT_COMMANDS_H_ - |
