Index: chrome/test/functional/instant.py |
diff --git a/chrome/test/functional/instant.py b/chrome/test/functional/instant.py |
index 19fbae4084221a73ac674b568a35ea693f076e26..66817f5c74821ff56d1c669926b7c483d201d8bd 100755 |
--- a/chrome/test/functional/instant.py |
+++ b/chrome/test/functional/instant.py |
@@ -167,14 +167,14 @@ class InstantTest(pyauto.PyUITest): |
self.NavigateToURL('about:blank'); |
self._BringUpInstant() |
self.AppendTab(pyauto.GURL('chrome://newtab')) |
- self.GetBrowserWindow(0).GetTab(1).Close(True) |
+ self.CloseTab(tab_index=1) |
self.assertEqual(self.GetActiveTabTitle(), 'about:blank') |
def testExtnPageCanDismissInstant(self): |
"""Test that instant preview is dismissed by extension page.""" |
self._BringUpInstant() |
self.AppendTab(pyauto.GURL('chrome://extensions')) |
- self.GetBrowserWindow(0).GetTab(1).Close(True) |
+ self.CloseTab(tab_index=1) |
self.assertEqual(self.GetActiveTabTitle(), 'New Tab') |
def testNewWindowCanDismissInstant(self): |