public static boolean openTab(final StoreTab t) {
		if (t == null)
			return false;
		WidgetChild wc;
		return getTab() == t || visible(wc = getChild(t == StoreTab.BUY ? BUY_TAB : SELL_TAB)) && wc.click(true)
				&& new TimedCondition(1400) {

					@Override
					public boolean isDone() {
						return getTab() == t;
					}

				}.waitStop();
	}