Index: chrome/test/pyautolib/pyauto.py |
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py |
index 9e179f6d7b74b87ca637ab356482d42ee5dc60f9..2184ecba2853e24e3c751072fed6fb86b39929b9 100644 |
--- a/chrome/test/pyautolib/pyauto.py |
+++ b/chrome/test/pyautolib/pyauto.py |
@@ -1790,6 +1790,18 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase): |
} |
self._GetResultFromJSONRequest(cmd_dict) |
+ def TriggerExtensionActionById(self, id, windex=0): |
+ """Trigger browser/page action asynchronously in the active tab. |
+ |
+ Args: |
+ id: The string id of the extension. |
dennis_jeffrey
2011/11/17 00:11:32
document the "windex" variable here too
frankf
2011/11/17 00:25:03
Done.
|
+ """ |
+ cmd_dict = { # Prepare command for the json interface |
+ 'command': 'TriggerExtensionActionById', |
+ 'id': id, |
+ } |
+ self._GetResultFromJSONRequest(cmd_dict, windex=windex) |
+ |
def UpdateExtensionsNow(self): |
"""Auto-updates installed extensions. |