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

Unified Diff: chrome/test/pyautolib/pyautolib.i

Issue 2903008: Expose cookie get/set to pyauto (Closed)
Patch Set: Final Created 10 years, 5 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/pyautolib/pyautolib.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/pyautolib.i
diff --git a/chrome/test/pyautolib/pyautolib.i b/chrome/test/pyautolib/pyautolib.i
index 889f989581afcf77c5a7fb01ba3b54caf94002a2..a1c4d64568f3819f457b1fe9b951d89dfc96a667 100644
--- a/chrome/test/pyautolib/pyautolib.i
+++ b/chrome/test/pyautolib/pyautolib.i
@@ -313,6 +313,19 @@ class PyUITestBase {
"Returns True on success.") AppendTab;
bool AppendTab(const GURL& tab_url, int window_index=0);
+ %feature("docstring", "Set the value of the cookie at cookie_url to value "
+ "for the given window index and tab index. "
+ "Returns True on success.") SetCookie;
+ bool SetCookie(const GURL& cookie_url, const std::string& value,
+ int window_index=0, int tab_index=0);
+
+ %feature("docstring", "Get the value of the cokie at cookie_url for the "
+ "given window index and tab index. "
+ "Returns empty string on error or if there is no value for the "
+ "cookie.") GetCookieVal;
+ std::string GetCookie(const GURL& cookie_url, int window_index=0,
+ int tab_index=0);
+
// Misc methods
%feature("docstring", "Determine if the browser is running. "
"Returns False if user closed the window or if the browser died")
« no previous file with comments | « chrome/test/pyautolib/pyautolib.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698