diff options
Diffstat (limited to 'chrome/test/automation/browser_proxy.h')
-rw-r--r-- | chrome/test/automation/browser_proxy.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/test/automation/browser_proxy.h b/chrome/test/automation/browser_proxy.h index a21bfe6..509a630 100644 --- a/chrome/test/automation/browser_proxy.h +++ b/chrome/test/automation/browser_proxy.h @@ -217,6 +217,15 @@ class BrowserProxy : public AutomationResourceProxy { // on success. bool ShutdownSessionService() WARN_UNUSED_RESULT; + // To avoid race conditions, waiting until a popup menu opens is a + // three-step process: + // 1. Call StartTrackingPopupMenus. + // 2. Call an automation method that results in opening the popup menu. + // 3. Call WaitForPopupMenuToOpen and check for success. + // Both methods return true on success. + bool StartTrackingPopupMenus() WARN_UNUSED_RESULT; + bool WaitForPopupMenuToOpen() WARN_UNUSED_RESULT; + protected: virtual ~BrowserProxy() {} private: |