Index: chrome/test/pyautolib/chromoting.py |
diff --git a/chrome/test/pyautolib/chromoting.py b/chrome/test/pyautolib/chromoting.py |
index b463fc48e420b1106e90b8bc8df0bcac5a82d9cd..ef2870eea359cd0b11108c0b59919d57c2f28853 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="Didn't see a 'skip adding account' or 'approve access' link.") |
dtu
2012/05/01 01:07:11
nit: Swap the " and ' in this line.
simonmorris
2012/05/01 16:58:25
Done.
|
+ self._ExecuteJavascript( |
+ 'if (document.getElementById("skip")) ' |
+ '{ document.getElementById("skip").click(); }', |
+ tab_index, windex) |
+ |
# Approve access. |
self.assertTrue( |
self._WaitForJavascriptCondition( |