* @param parentWidget the parent widget to search for a given widget.
* @param index the index of the widget, incase the matcher finds multiple widgets
* @return the first widget that matchs the matcher.
*/
public Widget widget(Matcher<?> matcher, Widget parentWidget, int index) {
WaitForWidgetInParent waitForWidget = waitForWidget(matcher, parentWidget);
waitUntilWidgetAppears(waitForWidget);
return waitForWidget.get(index);
}