/** * 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); }
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"); }