Im getting a MultipleWidgetsFoundException when I wasn before, what gives?
This happens in cases where the widget hierarchy is different at the time of playback than it was at recording. This presents a problem because the information that the recorder used to disambiguate the widget at recording-time is no longer sufficient to uniquely identify the widget. To remedy this, you have several alternatives. You can: • Re-record the snippet of the test in question. • Write a more descriptive locator by hand (see: this description of the widget finding algorithm for a jumping off point). • If the source for the widget in question is your own, you can name the widget. This name will be used in widget identification. See naming widgets for more information.
This happens in cases where the widget hierarchy is different at the time of playback than it was at recording. This presents a problem because the infomation that the recorder used to disambiguate the widget at recording-time is no longer sufficient to uniquely identify the widget. To remedy this, you have several alternatives. You can: • Re-record the snippet of the test in question. • Write a more descriptive locator by hand (see: this entry for more). • If the source for the widget in question is your own, you can name the widget. This name will be used in widget identification. For more on naming, see this entry.