@Test
	public void testQueryResultsSearch() {

		moveTool(500, 500);

		performAction("Search Text", "SearchTextPlugin", false);
		waitForSwing();

		DialogComponentProvider dialog = getDialog();

		JRadioButton rbAll = (JRadioButton) getInstanceField("searchAllRB", dialog);
		rbAll.setSelected(true);

		@SuppressWarnings("unchecked")
		GhidraComboBox<String> comboBox =
			(GhidraComboBox<String>) getInstanceField("valueComboBox", dialog);
		setComboBoxSelection(comboBox, "LAB");

		final JButton allButton = (JButton) getInstanceField("allButton", dialog);
		pressButton(allButton);
		waitForSwing();

		ComponentProvider provider = getProvider(TableComponentProvider.class);
		JComponent component = provider.getComponent();
		JTable table = findComponent(component, JTable.class);
		TableModel model = table.getModel();
		waitForTableModel((ThreadedTableModel<?, ?>) model);

		Window window = getWindowByTitle(null, "Search Limit Exceeded!");
		pressButtonByText(window, "OK");

		captureIsolatedProvider(TableComponentProvider.class, 500, 450);
	}
Captures the Direct References search dialog for a selection.
Ghidra/Test/IntegrationTest/src/screen/java/help/screenshot/SearchScreenShots.java