summaryrefslogtreecommitdiffstats
path: root/chrome/test/pyautolib/pyautolib.i
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/pyautolib/pyautolib.i')
-rw-r--r--chrome/test/pyautolib/pyautolib.i17
1 files changed, 17 insertions, 0 deletions
diff --git a/chrome/test/pyautolib/pyautolib.i b/chrome/test/pyautolib/pyautolib.i
index a1c4d64..b5fd1a5 100644
--- a/chrome/test/pyautolib/pyautolib.i
+++ b/chrome/test/pyautolib/pyautolib.i
@@ -154,6 +154,7 @@ class TabProxy {
%feature("docstring", "Cancel authentication to a login prompt. ")
CancelAuth;
bool CancelAuth();
+
};
class PyUITestSuiteBase {
@@ -347,6 +348,22 @@ class PyUITestBase {
_SendJSONRequest;
std::string _SendJSONRequest(int window_index, std::string request);
+ %feature("docstring", "Execute a string of javascript in the specified "
+ "(window, tab, frame) and return a string.") ExecuteJavascript;
+ std::wstring ExecuteJavascript(const std::wstring& script,
+ int window_index=0,
+ int tab_index=0,
+ const std::wstring& frame_xpath="");
+
+ %feature("docstring", "Evaluate a javascript expression in the specified "
+ "(window, tab, frame) and return the specified DOM value "
+ "as a string. This is a wrapper around "
+ "window.domAutomationController.send().") GetDOMValue;
+ std::wstring GetDOMValue(const std::wstring& expr,
+ int window_index=0,
+ int tab_index=0,
+ const std::wstring& frame_xpath="");
+
%feature("docstring", "Resets to the default theme. "
"Returns true on success.") ResetToDefaultTheme;
bool ResetToDefaultTheme();