Index: chrome/test/webdriver/commands/webelement_commands.h |
diff --git a/chrome/test/webdriver/commands/webelement_commands.h b/chrome/test/webdriver/commands/webelement_commands.h |
index 5bf8b936ba94ff7c774fbcd2b787178ba1ef00ac..9d5819376ce21a87dccef4080a1255e3658adb52 100644 |
--- a/chrome/test/webdriver/commands/webelement_commands.h |
+++ b/chrome/test/webdriver/commands/webelement_commands.h |
@@ -13,8 +13,13 @@ |
class DictionaryValue; |
+namespace gfx { |
+ class Point; |
+} |
+ |
namespace webdriver { |
+class Error; |
class Response; |
// Handles commands that interact with a web element in the WebDriver REST |
@@ -28,6 +33,12 @@ class WebElementCommand : public WebDriverCommand { |
virtual bool Init(Response* const response); |
protected: |
+ Error* GetAttribute(const std::string& key, Value** value) const; |
kkania
2011/05/27 20:48:47
put this and the following function in Session ins
nodchip
2011/05/30 04:51:45
Done.
|
+ |
+ // Gets a clickable location of the given element. It will be the center |
+ // location of the element. |
+ Error* GetClickableLocation(gfx::Point* location) const; |
+ |
const std::vector<std::string>& path_segments_; |
WebElementId element; |
@@ -249,6 +260,12 @@ class ElementValueCommand : public WebElementCommand { |
virtual void ExecutePost(Response* const response); |
private: |
+ // Returns whether the element has a given attribute pair. |
+ Error* HasAttribute(const std::string& key, const std::string& value, |
+ bool* result) const; |
+ Error* DragAndDropFilePaths() const; |
+ Error* SendKeys() const; |
+ |
DISALLOW_COPY_AND_ASSIGN(ElementValueCommand); |
}; |