Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3436)

Unified Diff: chrome/test/pyautolib/chromoting.py

Issue 10263017: [Chromoting] The PyAuto test handles the account adder screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use single and double quotes correctly." Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698