Index: chrome/android/javatests/src/org/chromium/chrome/browser/media/remote/CastSwitchVideoTest.java |
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/media/remote/CastSwitchVideoTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/media/remote/CastSwitchVideoTest.java |
index f52409a189bf390446500fbc637f8703eb04c1d0..65912295a5075bfc2681305783550c33d0e1dab8 100644 |
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/media/remote/CastSwitchVideoTest.java |
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/media/remote/CastSwitchVideoTest.java |
@@ -159,6 +159,7 @@ public class CastSwitchVideoTest extends CastTestBase { |
TimeoutException { |
final Tab tab = getActivity().getActivityTab(); |
WebContents webContents = tab.getWebContents(); |
+ DOMUtils.clickNode(this, tab.getContentViewCore(), "button1"); |
waitUntilVideoReady(videoElement, webContents); |
Rect videoRect = DOMUtils.getNodeBounds(webContents, videoElement); |
@@ -170,6 +171,7 @@ public class CastSwitchVideoTest extends CastTestBase { |
final Tab tab = getActivity().getActivityTab(); |
WebContents webContents = tab.getWebContents(); |
+ DOMUtils.clickNode(this, tab.getContentViewCore(), "button1"); |
waitUntilVideoReady(videoElement, webContents); |
// Need to click on the video first to overcome the user gesture requirement. |