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

Unified Diff: chrome/test/pyautolib/pyauto.py

Issue 8587004: Add PyAuto tests for triggering browser/page action. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor style change Created 9 years, 1 month 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
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.
« chrome/test/functional/extensions.py ('K') | « chrome/test/functional/extensions.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698