[Chromoting] The PyAuto test handles the account adder screen.


Review URL: http://codereview.chromium.org/10263017

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134737 0039d316-1c4b-4281-b951-d872f2087c98
parent 38cf69e4
...@@ -100,6 +100,18 @@ class ChromotingMixIn(object): ...@@ -100,6 +100,18 @@ class ChromotingMixIn(object):
'document.getElementById("smsVerifyPin").click();' 'document.getElementById("smsVerifyPin").click();'
% otp, tab_index, windex) % 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. # Approve access.
self.assertTrue( self.assertTrue(
self._WaitForJavascriptCondition( self._WaitForJavascriptCondition(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment