@Test
	public void testDirectRefsOnSelection() {

		moveTool(500, 500);

		goToListing(0x407b44, "Address", false);
		makeSelection(0x40e626, 0x40e748);
		performAction("Search for Direct References", "FindPossibleReferencesPlugin", false);
		waitForSwing();

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

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