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

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: 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..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(
« 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