Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
vaisakhkannan committed Jan 16, 2025
1 parent 0a3d9c9 commit 1469832
Showing 1 changed file with 1 addition and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2841,27 +2841,5 @@ public static void clickOnLoad(RemoteRobot remoteRobot) {
// Main Menu button is not clicked, nothing to do
}
}

public static RemoteText findTextInListOutputPanelNew(CommonContainerFixture fixture, String text) {
RemoteText foundText = null;

List<JListFixture> searchLists = fixture.jLists(JListFixture.Companion.byType());
if (!searchLists.isEmpty()) {
JListFixture searchList = searchLists.get(0);
try {
List<RemoteText> entries = searchList.findAllText();
for (RemoteText entry : entries) {
if (entry.getText().contains(text)) {
foundText = entry;
}
}
} catch (NoSuchElementException nsee) {
// The list is empty.
return null;
}
}

return foundText;
}


}

0 comments on commit 1469832

Please sign in to comment.