Bug 1271917 - Fix menu reference to close page info window. r=maja_zf, a=test-only
authorHenrik Skupin <mail@hskupin.info>
Wed, 11 May 2016 12:54:36 +0200
changeset 332899 5b34433693cf6fbee0835b49855c66d65c1c16f6
parent 332898 fc67e4930cc65c77003e4b40aedb6095e9fc5d32
child 332900 b4e6080db0238862dfb893ea6ab564fcd4375da1
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmaja_zf, test-only
bugs1271917
milestone48.0a2
Bug 1271917 - Fix menu reference to close page info window. r=maja_zf, a=test-only MozReview-Commit-ID: 4XfI5yRBe4y
testing/puppeteer/firefox/firefox_puppeteer/ui/pageinfo/window.py
--- a/testing/puppeteer/firefox/firefox_puppeteer/ui/pageinfo/window.py
+++ b/testing/puppeteer/firefox/firefox_puppeteer/ui/pageinfo/window.py
@@ -46,17 +46,17 @@ class PageInfoWindow(BaseWindow):
         :param force: Optional, forces the closing of the window by using the Gecko API.
          Defaults to `False`.
         """
         def callback(win):
             # Prepare action which triggers the opening of the browser window
             if callable(trigger):
                 trigger(win)
             elif trigger == 'menu':
-                self.menubar.select_by_id('file-menu', 'menu_closeWindow')
+                self.menubar.select_by_id('file-menu', 'menu_close')
             elif trigger == 'shortcut':
                 win.send_shortcut(win.get_entity('closeWindow.key'),
                                   accel=True)
             else:
                 raise ValueError('Unknown closing method: "%s"' % trigger)
 
         BaseWindow.close(self, callback, force)