summaryrefslogtreecommitdiffstats
path: root/chrome/test/pyautolib/pyautolib.i
diff options
context:
space:
mode:
authornirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-09 18:26:23 +0000
committernirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-09 18:26:23 +0000
commit76bb9c355cc9d34bc3d489125d9764598d533289 (patch)
treec5f2c9aabc98d2e024ce1e1f537b972a7044b131 /chrome/test/pyautolib/pyautolib.i
parent5da7c2d76833bb8d1580a8c3e09849a876fea65d (diff)
downloadchromium_src-76bb9c355cc9d34bc3d489125d9764598d533289.zip
chromium_src-76bb9c355cc9d34bc3d489125d9764598d533289.tar.gz
chromium_src-76bb9c355cc9d34bc3d489125d9764598d533289.tar.bz2
Provide a method to specify to the automation interface the dir containing browser binaries
Problem: The automation proxy interface kinda assumes that the running binary would reside in the same directory as the browser binaries -- ie in Debug/Release dirs. While this works for all C++ binaries like ui_tests, startup_tests, this fails for pyauto tests since the running binary in this case is /usr/bin/python (or some such system path). This changeset lets pyauto explicitly specify the automation interface the dir in which to look for chromium binaries. Also, expose RunCommand method to pyauto. BUG=37730 TEST=pyauto scripts should work without having to copy python to Debug/Release dirs Review URL: http://codereview.chromium.org/695001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41051 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/pyautolib/pyautolib.i')
-rw-r--r--chrome/test/pyautolib/pyautolib.i7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/test/pyautolib/pyautolib.i b/chrome/test/pyautolib/pyautolib.i
index 28aa983..f1a01f1 100644
--- a/chrome/test/pyautolib/pyautolib.i
+++ b/chrome/test/pyautolib/pyautolib.i
@@ -81,6 +81,10 @@ class PyUITestSuite {
public:
PyUITestSuite(int argc, char** argv);
+ %feature("docstring", "Initialize the entire setup. Should be called "
+ "before launching the browser. For internal use.") Initialize;
+ void Initialize(const FilePath& browser_dir);
+
%feature("docstring",
"Fires up the browser and opens a window.") SetUp;
virtual void SetUp();
@@ -106,6 +110,9 @@ class PyUITestSuite {
"Returns True on success.")
ApplyAccelerator;
bool ApplyAccelerator(int id, int window_index=0);
+ %feature("docstring", "Like ApplyAccelerator, except that it waits for "
+ "the command to execute.") RunCommand;
+ bool RunCommand(int browser_command, int window_index = 0);
// Get/fetch properties
%feature("docstring",