Esempio n. 1
0
 /**
  * Gets the AdapterView of the tabs list.
  *
  * @return List view in the tabs tray
  */
 private final AdapterView<ListAdapter> getTabsList() {
   Element tabs = mDriver.findElement(getActivity(), R.id.tabs);
   tabs.click();
   return (AdapterView<ListAdapter>) getActivity().findViewById(R.id.normal_tabs);
 }
Esempio n. 2
0
 public final void verifyTabCount(int expectedTabCount) {
   Element tabCount = mDriver.findElement(getActivity(), R.id.tabs_counter);
   String tabCountText = tabCount.getText();
   int tabCountInt = Integer.parseInt(tabCountText);
   mAsserter.is(tabCountInt, expectedTabCount, "The correct number of tabs are opened");
 }