Index: content/browser/frame_host/navigation_controller_impl_browsertest.cc |
diff --git a/content/browser/frame_host/navigation_controller_impl_browsertest.cc b/content/browser/frame_host/navigation_controller_impl_browsertest.cc |
index eeb15ca4e4bef876004ec1308aceddae0856a06b..292bb226b765b521479bad402fed76980b48c967 100644 |
--- a/content/browser/frame_host/navigation_controller_impl_browsertest.cc |
+++ b/content/browser/frame_host/navigation_controller_impl_browsertest.cc |
@@ -5829,8 +5829,7 @@ IN_PROC_BROWSER_TEST_F(NavigationControllerBrowserTest, |
// Submit the form. |
TestNavigationObserver observer(shell()->web_contents(), 1); |
- EXPECT_TRUE(ExecuteScript( |
- shell(), "window.domAutomationController.send(submitForm('isubmit'))")); |
+ ExecuteScriptAsync(shell(), "submitForm('isubmit')"); |
observer.Wait(); |
EXPECT_EQ(2, controller.GetEntryCount()); |