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

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

Issue 10913043: Convert the popups pyauto test to browser_tests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 4 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/functional/popups.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/pyauto.py
===================================================================
--- chrome/test/pyautolib/pyauto.py (revision 154448)
+++ chrome/test/pyautolib/pyauto.py (working copy)
@@ -3380,37 +3380,6 @@
}
return self._GetResultFromJSONRequest(cmd_dict)['passwords']
- def GetBlockedPopupsInfo(self, tab_index=0, windex=0):
- """Get info about blocked popups in a tab.
-
- Args:
- tab_index: 0-based tab index. Default: 0
- windex: 0-based window index. Default: 0
-
- Returns:
- [a list of property dictionaries for each blocked popup]
- Property dictionary contains: title, url
- """
- cmd_dict = {
- 'command': 'GetBlockedPopupsInfo',
- 'tab_index': tab_index,
- }
- return self._GetResultFromJSONRequest(cmd_dict,
- windex=windex)['blocked_popups']
-
- def UnblockAndLaunchBlockedPopup(self, popup_index, tab_index=0, windex=0):
- """Unblock/launch a poup at the given index.
-
- This is equivalent to clicking on a blocked popup in the UI available
- from the omnibox.
- """
- cmd_dict = {
- 'command': 'UnblockAndLaunchBlockedPopup',
- 'popup_index': popup_index,
- 'tab_index': tab_index,
- }
- self._GetResultFromJSONRequest(cmd_dict, windex=windex)
-
def ResetToDefaultTheme(self, windex=0):
"""Reset to default theme.
« no previous file with comments | « chrome/test/functional/popups.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698