Bug 1113754 - Wait for view in robocop getToolbarView; r=mcomella
authorGeoff Brown <gbrown@mozilla.com>
Tue, 30 Dec 2014 14:27:42 -0700
changeset 221693 4912606fb9c77c120db83256224eeafabc57acc1
parent 221692 c69a53cb9a040d9fbf0c5e692f1ba84d0ab7d655
child 221694 f93e28755637c2bc51527442375bf5f23ec4a44b
push id28036
push userkwierso@gmail.com
push dateWed, 31 Dec 2014 19:08:53 +0000
treeherdermozilla-central@f996eb4935c6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcomella
bugs1113754
milestone37.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1113754 - Wait for view in robocop getToolbarView; r=mcomella
mobile/android/base/tests/components/ToolbarComponent.java
--- a/mobile/android/base/tests/components/ToolbarComponent.java
+++ b/mobile/android/base/tests/components/ToolbarComponent.java
@@ -78,16 +78,17 @@ public class ToolbarComponent extends Ba
         fAssertFalse("The edit text is not selected", isUrlEditTextSelected());
         return this;
     }
 
     /**
      * Returns the root View for the browser toolbar.
      */
     private View getToolbarView() {
+        mSolo.waitForView(R.id.browser_toolbar);
         return mSolo.getView(R.id.browser_toolbar);
     }
 
     private EditText getUrlEditText() {
         return (EditText) getToolbarView().findViewById(R.id.url_edit_text);
     }
 
     private View getUrlDisplayLayout() {