title: Not able to select an item from AutoCompleteTextView dropdown using Espresso
body: <p>Following is the snapshot of my AutoCompleteTextView dropdown, from which I'm trying to select 2nd item</p>
  
  <p><a href="https://i.stack.imgur.com/r02GO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r02GO.png" alt="enter image description here"></a></p>
  
  <p><strong>My Espresso Code:</strong></p>
  
  <pre><code>onView(withId(R.id.searchContainer)).check(matches(isDisplayed()));
  onData(anything())
        .inAdapterView(withId(R.id.searchContainer))
        .atPosition(1)
        .perform(click());
  </code></pre>
  
  <p>But I'm getting following Exception: </p>
  
  <pre><code>android.support.test.espresso.PerformException: Error performing 'load adapter data' on view 'with id: com.sampleaddressdd.demo:id/searchContainer'
  </code></pre>
  
  <p><strong>With Espresso Recorder I get following code:</strong></p>
  
  <pre><code>DataInteraction appCompatTextView = onData(anything())
                  .inAdapterView(childAtPosition(
                          withClassName(is("android.widget.PopupWindow$PopupBackgroundView")),
                          0))
                  .atPosition(0);
          appCompatTextView.perform(click());
  </code></pre>
  
  <p><strong>Dropdown inflater code :</strong></p>
  
  <pre><code>        mSearchView = findViewById(R.id.textSearch);
          mSearchView.setDropDownAnchor(R.id.searchContainer);
          mHttpClient.fetchAddresss(new HttpClient.AddressCallback() {
              @Override
              public void run() {
                  mAdapter = new AddressAdapter(MainActivity.this, mAddresss, new AddressAdapter.OnAddressClickCallback() {
                      @Override
                      public void execute(Address Address) {
                          startActivity(AddressProfileActivity.createIntent(MainActivity.this, Address));
                      }
                  });
                  runOnUiThread(new Runnable() {
                      @Override
                      public void run() {
                          mSearchView.setAdapter(mAdapter);
                      }
                  });
              }
          });
  </code></pre>