Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Unified Diff: chrome/test/webdriver/session.h

Issue 7541056: Toggle a multiple select option instead of setting it as selected when (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/webdriver/commands/webelement_commands.cc ('k') | chrome/test/webdriver/session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/session.h
diff --git a/chrome/test/webdriver/session.h b/chrome/test/webdriver/session.h
index c84656a81125b0154fc0e9ee3545d87a9e65c19e..4aa1cd0a6f825bb0fc583c0bdede0969fac8c455 100644
--- a/chrome/test/webdriver/session.h
+++ b/chrome/test/webdriver/session.h
@@ -248,8 +248,20 @@ class Session {
const WebElementId& element,
bool* is_enabled);
- // Sets the given option element as selected.
- Error* SelectOptionElement(const FrameId& frame_id,
+ // Gets whether the option element is currently selected.
+ Error* IsOptionElementSelected(const FrameId& frame_id,
+ const WebElementId& element,
+ bool* is_selected);
+
+ // Set the selection state of the given option element. The option element
+ // must support multi selection if |selected| is false.
+ Error* SetOptionElementSelected(const FrameId& frame_id,
+ const WebElementId& element,
+ bool selected);
+
+ // Toggles the option element's selection state. The option element should
+ // support multi selection.
+ Error* ToggleOptionElement(const FrameId& frame_id,
const WebElementId& element);
// Gets the tag name of the given element.
« no previous file with comments | « chrome/test/webdriver/commands/webelement_commands.cc ('k') | chrome/test/webdriver/session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698