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

Unified Diff: chrome/test/remoting/remote_desktop_browsertest.h

Issue 544403002: Fix Auth browser-test failure: make sure element is ready to receive click. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
Index: chrome/test/remoting/remote_desktop_browsertest.h
diff --git a/chrome/test/remoting/remote_desktop_browsertest.h b/chrome/test/remoting/remote_desktop_browsertest.h
index e5659945c958f78196e17b04a7d74e32063e5ac0..020c918eb115eb229b8a3f66e6c5713554790892 100644
--- a/chrome/test/remoting/remote_desktop_browsertest.h
+++ b/chrome/test/remoting/remote_desktop_browsertest.h
@@ -314,6 +314,14 @@ class RemoteDesktopBrowserTest : public extensions::PlatformAppBrowserTest {
return IsAuthenticatedInWindow(active_web_contents());
}
+ // Callback used by Approve to check whether the Accept button is enabled
+ // and ready to receive a click.
+ bool IsEnabled(const std::string& name) {
+ return !ExecuteScriptAndExtractBool(
+ active_web_contents(),
+ "document.getElementById(\"" + name + "\").disabled");
+ }
+
// If the "Host version out-of-date" form is visible, dismiss it.
void DismissHostVersionWarningIfVisible();
« no previous file with comments | « no previous file | chrome/test/remoting/remote_desktop_browsertest.cc » ('j') | chrome/test/remoting/remote_desktop_browsertest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698