Index: chrome/test/functional/webrtc_call.py |
diff --git a/chrome/test/functional/webrtc_call.py b/chrome/test/functional/webrtc_call.py |
index 64458ac12305c425e7453f42ee496c47cdcac0bc..60b8b074e0a42d5fe879e792e8782b784201f14b 100755 |
--- a/chrome/test/functional/webrtc_call.py |
+++ b/chrome/test/functional/webrtc_call.py |
@@ -178,7 +178,8 @@ class WebrtcCallTest(webrtc_test_base.WebrtcTestBase): |
self._LoadPageInTwoTabs('webrtc_jsep01_test.html') |
self._SetupCall(request_video=True, request_audio=True) |
- select_video_function = 'function(local) { return local.videoTracks[0]; }' |
+ select_video_function = \ |
+ 'function(local) { return local.getVideoTracks()[0]; }' |
self.assertEquals('ok-video-toggled-to-false', self.ExecuteJavascript( |
'toggleLocalStream(' + select_video_function + ', "video")', |
tab_index=0)) |