* @param matcher the matcher used to match widgets.
* @param index the index of the widget in case there are multiple widgets.
* @return the index'th widget matching the matcher.
*/
public Widget widget(Matcher<?> matcher, int index) {
WaitForWidget waitForWidget = waitForWidget(matcher);
waitUntilWidgetAppears(waitForWidget);
return waitForWidget.get(index);
}