OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_TEST_WEBDRIVER_COMMANDS_CREATE_SESSION_H_ |
| 6 #define CHROME_TEST_WEBDRIVER_COMMANDS_CREATE_SESSION_H_ |
| 7 |
| 8 #include <string> |
| 9 #include <vector> |
| 10 |
| 11 #include "chrome/test/webdriver/commands/command.h" |
| 12 #include "chrome/test/webdriver/commands/webdriver_command.h" |
| 13 |
| 14 namespace webdriver { |
| 15 |
| 16 // Create a new session which is a new instance of the chrome browser with no |
| 17 // page loaded. A new session ID is passed back to the user which is used for |
| 18 // all future commands that are sent to control this new instance. The |
| 19 // desired capabilities should be specified in a JSON object with the |
| 20 // following properties: |
| 21 // http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session |
| 22 class CreateSession : public Command { |
| 23 public: |
| 24 inline CreateSession(const std::vector<std::string>& path_segments, |
| 25 const DictionaryValue* const parameters) |
| 26 : Command(path_segments, parameters) {} |
| 27 virtual ~CreateSession() {} |
| 28 |
| 29 virtual bool DoesPost() { return true; } |
| 30 virtual void ExecutePost(Response* const response); |
| 31 |
| 32 private: |
| 33 DISALLOW_COPY_AND_ASSIGN(CreateSession); |
| 34 }; |
| 35 } // namespace webdriver |
| 36 #endif // CHROME_TEST_WEBDRIVER_COMMANDS_CREATE_SESSION_H_ |
| 37 |
OLD | NEW |