Index: chrome/test/pyautolib/chromoting.py |
diff --git a/chrome/test/pyautolib/chromoting.py b/chrome/test/pyautolib/chromoting.py |
index b463fc48e420b1106e90b8bc8df0bcac5a82d9cd..eb432ddd4eb19aaef1ac3fb9fa3f16ba123e3bea 100644 |
--- a/chrome/test/pyautolib/chromoting.py |
+++ b/chrome/test/pyautolib/chromoting.py |
@@ -100,6 +100,18 @@ class ChromotingMixIn(object): |
'document.getElementById("smsVerifyPin").click();' |
% otp, tab_index, windex) |
+ # If the account adder screen appears, then skip it. |
+ self.assertTrue( |
+ self._WaitForJavascriptCondition( |
+ 'document.getElementById("skip") || ' |
+ 'document.getElementById("submit_approve_access")', |
+ tab_index, windex), |
+ msg='No "skip adding account" or "approve access" link.') |
+ self._ExecuteJavascript( |
+ 'if (document.getElementById("skip")) ' |
+ '{ document.getElementById("skip").click(); }', |
+ tab_index, windex) |
+ |
# Approve access. |
self.assertTrue( |
self._WaitForJavascriptCondition( |